You are here

class Event in Drupal 9

Same name and namespace in other branches
  1. 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\Component\EventDispatcher\Event

Expanded class hierarchy of Event

29 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

3 string references to 'Event'
MultilingualReviewPageTest::getAvailablePaths in core/modules/migrate_drupal_ui/tests/src/Functional/d6/MultilingualReviewPageTest.php
Gets the available upgrade paths.
NoMultilingualReviewPageTest::getAvailablePaths in core/modules/migrate_drupal_ui/tests/src/Functional/d6/NoMultilingualReviewPageTest.php
Gets the available upgrade paths.
Upgrade6Test::getAvailablePaths in core/modules/migrate_drupal_ui/tests/src/Functional/d6/Upgrade6Test.php
Gets the available upgrade paths.

File

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

Namespace

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

}

Members