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

Breadcrumb

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

function GenericEvent::offsetUnset

ArrayAccess for unset argument.

Parameters

string $key Array key:

File

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

Class

GenericEvent
Event encapsulation class.

Namespace

Symfony\Component\EventDispatcher

Code

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

API Navigation

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