public function GenericEvent::setArgument

Add argument to event.

Parameters

string $key Argument name.:

mixed $value Value.:

Return value

GenericEvent

1 call to GenericEvent::setArgument()
GenericEvent::offsetSet in drupal/core/vendor/symfony/event-dispatcher/Symfony/Component/EventDispatcher/GenericEvent.php
ArrayAccess for argument setter.

File

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

Class

GenericEvent
Event encapsulation class.

Namespace

Symfony\Component\EventDispatcher

Code

public function setArgument($key, $value) {
  $this->arguments[$key] = $value;
  return $this;
}