You are here

public static function Element::property in Render cache 7.2

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

lib/Drupal/Core/Render/Element.php, line 30
Contains \Drupal\Core\Render\Element.

Class

Element
Provides helper methods for Drupal render elements.

Namespace

Drupal\Core\Render

Code

public static function property($key) {
  return $key[0] == '#';
}