public function EventDispatcherCollection::addEventDispatcher in Payment 8.2
Adds an event dispatcher to the collection.
Parameters
\Drupal\payment\EventDispatcherInterface $event_dispatcher:
Return value
$this
File
- src/
EventDispatcherCollection.php, line 30
Class
- EventDispatcherCollection
- Dispatches events to a collection of event dispatchers.
Namespace
Drupal\paymentCode
public function addEventDispatcher(EventDispatcherInterface $event_dispatcher) {
$this->eventDispatchers[] = $event_dispatcher;
return $this;
}