You are here

public function Element::hasProperty in Express 8

Indicates whether the element has a specific property.

Parameters

string $name: The property to check.

2 calls to Element::hasProperty()
Element::isPropertyEmpty in themes/contrib/bootstrap/src/Utility/Element.php
Indicates whether a property on the element is empty.
Element::smartDescription in themes/contrib/bootstrap/src/Utility/Element.php
Converts an element description into a tooltip based on certain criteria.

File

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

Class

Element
Provides helper methods for Drupal render elements.

Namespace

Drupal\bootstrap\Utility

Code

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