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');
}
doc_Drupal
2016-10-29 09:04:00
Comments
Leave a Comment

Please login to continue.