public static function Element::property in Drupal 8
Same name and namespace in other branches
- 9 core/lib/Drupal/Core/Render/Element.php \Drupal\Core\Render\Element::property()
- 10 core/lib/Drupal/Core/Render/Element.php \Drupal\Core\Render\Element::property()
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.
1 call to Element::property()
- ElementTest::testProperty in core/
tests/ Drupal/ Tests/ Core/ Render/ ElementTest.php - Tests the property() method.
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] == '#';
}