Provides helper methods for Drupal render elements.
\Drupal\Core\Render\Element\ElementInterface
Name | Modifiers | Type | Description |
---|---|---|---|
Element::child | public static | function | Checks if the key is a child. |
Element::children | public static | function | Identifies the children of an element array, optionally sorted by weight. |
Element::getVisibleChildren | public static | function | Returns the visible children of an element. |
Element::isEmpty | public static | function | Indicates whether the given element is empty. |
Element::isVisibleElement | public static | function | Determines if an element is visible. |
Element::properties | public static | function | Gets properties of a structured array element (keys beginning with '#'). |
Element::property | public static | function | Checks if the key is a property. |
Element::setAttributes | public static | function | Sets HTML attributes based on element properties. |
© 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/class/Element/8.1.x