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

Breadcrumb

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

function GenericEvent::setArgument

Add argument to event.

Return value

$this

1 call to GenericEvent::setArgument()
GenericEvent::offsetSet in vendor/symfony/event-dispatcher/GenericEvent.php
ArrayAccess for argument setter.

File

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

Class

GenericEvent
Event encapsulation class.

Namespace

Symfony\Component\EventDispatcher

Code

public function setArgument(string $key, mixed $value) : static {
    $this->arguments[$key] = $value;
    return $this;
}

API Navigation

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