ArrayAccess for argument getter.
Parameters
string $key Array key.:
Return value
mixed
Throws
\InvalidArgumentException If key does not exist in $this->args.
File
- drupal/core/vendor/symfony/event-dispatcher/Symfony/Component/EventDispatcher/GenericEvent.php, line 137
Class
- GenericEvent
- Event encapsulation class.
Namespace
Symfony\Component\EventDispatcher
Code
public function offsetGet($key) {
return $this
->getArgument($key);
}