You are here

public function Element::isPropertyEmpty in Express 8

Indicates whether a property on the element is empty.

Parameters

string $name: The property to check.

Return value

bool Whether the given property on the element is empty.

File

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

Class

Element
Provides helper methods for Drupal render elements.

Namespace

Drupal\bootstrap\Utility

Code

public function isPropertyEmpty($name) {
  return $this
    ->hasProperty($name) && empty($this
    ->getProperty($name));
}