Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. GenericEvent.php

function GenericEvent::offsetGet

ArrayAccess for argument getter.

Parameters

string $key Array key:

Throws

\InvalidArgumentException if key does not exist in $this->args

File

vendor/symfony/event-dispatcher/GenericEvent.php, line 109

Class

GenericEvent
Event encapsulation class.

Namespace

Symfony\Component\EventDispatcher

Code

public function offsetGet(mixed $key) : mixed {
    return $this->getArgument($key);
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal