public function GenericEvent::offsetUnset

ArrayAccess for unset argument.

Parameters

string $key Array key.:

File

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

Class

GenericEvent
Event encapsulation class.

Namespace

Symfony\Component\EventDispatcher

Code

public function offsetUnset($key) {
  if ($this
    ->hasArgument($key)) {
    unset($this->arguments[$key]);
  }
}