public static function Element::properties

public static Element::properties(array $element)

Gets properties of a structured array element (keys beginning with '#').

Parameters

array $element: An element array to return properties for.

Return value

array An array of property keys for the element.

File

core/lib/Drupal/Core/Render/Element.php, line 39

Class

Element
Provides helper methods for Drupal render elements.

Namespace

Drupal\Core\Render

Code

public static function properties(array $element) {
  return array_filter(array_keys($element), 'static::property');
}

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Render!Element.php/function/Element::properties/8.1.x