function Element::properties
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.
1 call to Element::properties()
- TextFormat::processFormat in core/
modules/ filter/ src/ Element/ TextFormat.php - Expands an element into a base element with text format selector attached.
File
-
core/
lib/ Drupal/ Core/ Render/ Element.php, line 38
Class
- Element
- Provides helper methods for Drupal render elements.
Namespace
Drupal\Core\RenderCode
public static function properties(array $element) {
return array_filter(array_keys($element), [
static::class,
'property',
]);
}