public function GenericEvent::getIterator

IteratorAggregate for iterating over the object like an array

Return value

\ArrayIterator

File

drupal/core/vendor/symfony/event-dispatcher/Symfony/Component/EventDispatcher/GenericEvent.php, line 186

Class

GenericEvent
Event encapsulation class.

Namespace

Symfony\Component\EventDispatcher

Code

public function getIterator() {
  return new \ArrayIterator($this->arguments);
}