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

Breadcrumb

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

function GenericEvent::__construct

Encapsulate an event with $subject and $arguments.

Parameters

mixed $subject The subject of the event, usually an object or a callable:

array $arguments Arguments to store in the event:

File

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

Class

GenericEvent
Event encapsulation class.

Namespace

Symfony\Component\EventDispatcher

Code

public function __construct(mixed $subject = null, array $arguments = []) {
}

API Navigation

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