Element::child

public static Element::child($key)

Checks if the key is a child.

Parameters

string $key: The key to check.

Return value

bool TRUE if the element is a child, FALSE otherwise.

File

core/lib/Drupal/Core/Render/Element.php, line 52

Class

Element
Provides helper methods for Drupal render elements.

Namespace

Drupal\Core\Render

Code

public static function child($key) {
  return !isset($key[0]) || $key[0] != '#';
}
doc_Drupal
2016-10-29 09:03:59
Comments
Leave a Comment

Please login to continue.