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

Breadcrumb

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

function Event::__construct

Same name in this branch
  1. 11.1.x vendor/open-telemetry/sdk/Trace/Event.php \OpenTelemetry\SDK\Trace\Event::__construct()
  2. 11.1.x vendor/open-telemetry/gen-otlp-protobuf/Opentelemetry/Proto/Trace/V1/Span/Event.php \Opentelemetry\Proto\Trace\V1\Span\Event::__construct()
  3. 11.1.x vendor/composer/composer/src/Composer/Script/Event.php \Composer\Script\Event::__construct()

Constructor.

Parameters

string $name The event name:

string[] $args Arguments passed by the user:

mixed[] $flags Optional flags to pass data not as argument:

16 calls to Event::__construct()
CommandEvent::__construct in vendor/composer/composer/src/Composer/Plugin/CommandEvent.php
Constructor.
CommandEvent::__construct in vendor/composer/composer/src/Composer/Plugin/CommandEvent.php
Constructor.
Event::__construct in vendor/composer/composer/src/Composer/Script/Event.php
Constructor.
Event::__construct in vendor/composer/composer/src/Composer/Script/Event.php
Constructor.
InstallerEvent::__construct in vendor/composer/composer/src/Composer/Installer/InstallerEvent.php
Constructor.

... See full list

8 methods override Event::__construct()
CommandEvent::__construct in vendor/composer/composer/src/Composer/Plugin/CommandEvent.php
Constructor.
Event::__construct in vendor/composer/composer/src/Composer/Script/Event.php
Constructor.
InstallerEvent::__construct in vendor/composer/composer/src/Composer/Installer/InstallerEvent.php
Constructor.
PackageEvent::__construct in vendor/composer/composer/src/Composer/Installer/PackageEvent.php
Constructor.
PostFileDownloadEvent::__construct in vendor/composer/composer/src/Composer/Plugin/PostFileDownloadEvent.php
Constructor.

... See full list

File

vendor/composer/composer/src/Composer/EventDispatcher/Event.php, line 49

Class

Event
The base event class

Namespace

Composer\EventDispatcher

Code

public function __construct(string $name, array $args = [], array $flags = []) {
    $this->name = $name;
    $this->args = $args;
    $this->flags = $flags;
}

API Navigation

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