class Event

Same name in other branches
  1. 9 core/lib/Drupal/Component/EventDispatcher/Event.php \Drupal\Component\EventDispatcher\Event
  2. 11.x core/lib/Drupal/Component/EventDispatcher/Event.php \Drupal\Component\EventDispatcher\Event

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.

Hierarchy

  • class \Drupal\Component\EventDispatcher\Event extends \Symfony\Contracts\EventDispatcher\Event

Expanded class hierarchy of Event

32 files declare their use of Event
AccountSetEvent.php in core/lib/Drupal/Core/Session/AccountSetEvent.php
BlockContentGetDependencyEvent.php in core/modules/block_content/src/Event/BlockContentGetDependencyEvent.php
ConfigCollectionInfo.php in core/lib/Drupal/Core/Config/ConfigCollectionInfo.php
ConfigCrudEvent.php in core/lib/Drupal/Core/Config/ConfigCrudEvent.php
ConfigImporterEvent.php in core/lib/Drupal/Core/Config/ConfigImporterEvent.php

... See full list

16 string references to 'Event'
DatabaseBackend::schemaDefinition in core/lib/Drupal/Core/Flood/DatabaseBackend.php
Defines the schema for the flood table.
drupal6.php in core/modules/statistics/tests/fixtures/drupal6.php
A database agnostic dump for testing purposes.
drupal6.php in core/modules/book/tests/fixtures/drupal6.php
A database agnostic dump for testing purposes.
drupal6.php in core/modules/migrate_drupal/tests/fixtures/drupal6.php
A database agnostic dump for testing purposes.
drupal6.php in core/modules/forum/tests/fixtures/drupal6.php
A database agnostic dump for testing purposes.

... See full list

File

core/lib/Drupal/Component/EventDispatcher/Event.php, line 15

Namespace

Drupal\Component\EventDispatcher
View source
class Event extends SymfonyEvent {

}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.