You are here

public function GenericEvent::offsetUnset in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/event-dispatcher/GenericEvent.php \Symfony\Component\EventDispatcher\GenericEvent::offsetUnset()

ArrayAccess for unset argument.

Parameters

string $key Array key.:

File

vendor/symfony/event-dispatcher/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]);
  }
}