Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. GenericEvent.php

function GenericEvent::getIterator

IteratorAggregate for iterating over the object like an array.

Return value

\ArrayIterator<string, mixed>

File

vendor/symfony/event-dispatcher/GenericEvent.php, line 151

Class

GenericEvent
Event encapsulation class.

Namespace

Symfony\Component\EventDispatcher

Code

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

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal