public function Attribute::getIterator

Implements IteratorAggregate::getIterator().

File

drupal/core/lib/Drupal/Core/Template/Attribute.php, line 129
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 getIterator() {
  return new \ArrayIterator($this->storage);
}