function public function Element::isPropertyEmpty

8.x-3.x Element.php public Element::isPropertyEmpty($name)

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.

Class

Element
Provides helper methods for Drupal render elements.

Namespace

Drupal\bootstrap\Utility

Source src/Utility/Element.php (line 463)

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