You are here

public function Element::childKeys in Express 8

Identifies the children of an element array, optionally sorted by weight.

The children of a element array are those key/value pairs whose key does not start with a '#'. See drupal_render() for details.

Parameters

bool $sort: Boolean to indicate whether the children should be sorted by weight.

Return value

array The array keys of the element's children.

1 call to Element::childKeys()
Element::children in themes/contrib/bootstrap/src/Utility/Element.php
Retrieves the children of an element array, optionally sorted by weight.

File

themes/contrib/bootstrap/src/Utility/Element.php, line 182
Contains \Drupal\bootstrap\Utility\Element.

Class

Element
Provides helper methods for Drupal render elements.

Namespace

Drupal\bootstrap\Utility

Code

public function childKeys($sort = FALSE) {
  return \Drupal\Core\Render\Element::children($this->array, $sort);
}