You are here

public function Element::isEmpty in Express 8

Indicates whether the given element is empty.

An element that only has #cache set is considered empty, because it will render to the empty string.

Return value

bool Whether the given element is empty.

File

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

Class

Element
Provides helper methods for Drupal render elements.

Namespace

Drupal\bootstrap\Utility

Code

public function isEmpty() {
  return \Drupal\Core\Render\Element::isEmpty($this->array);
}