class Event

Same name in other branches
  1. 9 core/lib/Drupal/Component/EventDispatcher/Event.php \Drupal\Component\EventDispatcher\Event
  2. 10 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

34 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
CollectRelationshipMetaEvent.php in core/modules/jsonapi/src/Events/CollectRelationshipMetaEvent.php
CollectResourceObjectMetaEvent.php in core/modules/jsonapi/src/Events/CollectResourceObjectMetaEvent.php
ConfigCollectionInfo.php in core/lib/Drupal/Core/Config/ConfigCollectionInfo.php

... See full list

17 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/forum/tests/fixtures/drupal6.php
A database agnostic dump for testing purposes.
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.

... 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.