public function Attributes::hasAttribute in Express 8
Indicates whether a specific attribute is set.
Parameters
string $name: The attribute to search for.
Return value
bool TRUE or FALSE
See also
\Drupal\bootstrap\Utility\ArrayObject::offsetExists()
File
- themes/
contrib/ bootstrap/ src/ Utility/ Attributes.php, line 78 - Contains \Drupal\bootstrap\Utility\Attributes.
Class
- Attributes
- Class to help modify attributes.
Namespace
Drupal\bootstrap\UtilityCode
public function hasAttribute($name) {
return $this
->offsetExists($name);
}