You are here

public function Attributes::getAttribute in Express 8

Retrieve a specific attribute from the array.

Parameters

string $name: The specific attribute to retrieve.

mixed $default: (optional) The default value to set if the attribute does not exist.

Return value

mixed A specific attribute value, passed by reference.

See also

\Drupal\bootstrap\Utility\ArrayObject::offsetGet()

File

themes/contrib/bootstrap/src/Utility/Attributes.php, line 49
Contains \Drupal\bootstrap\Utility\Attributes.

Class

Attributes
Class to help modify attributes.

Namespace

Drupal\bootstrap\Utility

Code

public function &getAttribute($name, $default = NULL) {
  return $this
    ->offsetGet($name, $default);
}