public static function Element::property
public static Element::property($key)
Checks if the key is a property.
Parameters
string $key: The key to check.
Return value
bool TRUE of the key is a property, FALSE otherwise.
File
- core/lib/Drupal/Core/Render/Element.php, line 26
Class
- Element
- Provides helper methods for Drupal render elements.
Namespace
Drupal\Core\RenderCode
public static function property($key) { return $key[0] == '#'; }
© 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::property/8.1.x