public function Attribute::offsetGet

Implements ArrayAccess::offsetGet().

File

drupal/core/lib/Drupal/Core/Template/Attribute.php, line 57
Definition of Drupal\Core\Template\Attribute.

Class

Attribute
A class that can be used for collecting then rendering HTML attributtes.

Namespace

Drupal\Core\Template

Code

public function offsetGet($name) {
  if (isset($this->storage[$name])) {
    return $this->storage[$name];
  }
}