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

Breadcrumb

  1. Drupal Core 11.1.x

Event.php

Same filename in this branch
  1. 11.1.x vendor/open-telemetry/sdk/Trace/Event.php
  2. 11.1.x vendor/open-telemetry/gen-otlp-protobuf/Opentelemetry/Proto/Trace/V1/Span/Event.php
  3. 11.1.x vendor/phpunit/phpunit/src/Event/Events/Event.php
  4. 11.1.x vendor/composer/composer/src/Composer/Script/Event.php
  5. 11.1.x vendor/composer/composer/src/Composer/EventDispatcher/Event.php
  6. 11.1.x vendor/symfony/event-dispatcher-contracts/Event.php

Namespace

Drupal\Component\EventDispatcher

File

core/lib/Drupal/Component/EventDispatcher/Event.php

View source
<?php

namespace Drupal\Component\EventDispatcher;

use Symfony\Contracts\EventDispatcher\Event as SymfonyEvent;

/**
 * Provides a forward-compatibility layer for the Symfony 5 event class.
 *
 * Symfony 5 relies on the Symfony\Contracts\EventDispatcher\Event class.
 * In order to prepare for updates, code that wishes to extend Symfony's Event
 * class should extend this intermediary class, which will handle switching
 * from Symfony\Component to Symfony\Contracts without a further change.
 */
class Event extends SymfonyEvent {

}

Classes

Title Deprecated Summary
Event Provides a forward-compatibility layer for the Symfony 5 event class.

API Navigation

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