function public function Element::hasProperty

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

Indicates whether the element has a specific property.

Parameters

string $name: The property to check.

Class

Element
Provides helper methods for Drupal render elements.

Namespace

Drupal\bootstrap\Utility

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

public function hasProperty($name) {
  return $this->offsetExists("#$name");
}