You are here

public static function Element::isRenderArray in Express 8

Checks if a value is a render array.

Parameters

mixed $value: The value to check.

Return value

bool TRUE if the given value is a render array, otherwise FALSE.

3 calls to Element::isRenderArray()
Bootstrap::toString in themes/contrib/bootstrap/src/Bootstrap.php
Ensures a value is typecast to a string, rendering an array if necessary.
Element::smartDescription in themes/contrib/bootstrap/src/Utility/Element.php
Converts an element description into a tooltip based on certain criteria.
Variables::__construct in themes/contrib/bootstrap/src/Utility/Variables.php
Element constructor.

File

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

Class

Element
Provides helper methods for Drupal render elements.

Namespace

Drupal\bootstrap\Utility

Code

public static function isRenderArray($value) {
  return is_array($value) && (isset($value['#type']) || isset($value['#theme']) || isset($value['#theme_wrappers']) || isset($value['#markup']) || isset($value['#attached']) || isset($value['#cache']) || isset($value['#lazy_builder']) || isset($value['#create_placeholder']) || isset($value['#pre_render']) || isset($value['#post_render']) || isset($value['#process']));
}