class Event
Same name in this branch
- 11.1.x vendor/open-telemetry/sdk/Trace/Event.php \OpenTelemetry\SDK\Trace\Event
- 11.1.x vendor/open-telemetry/gen-otlp-protobuf/Opentelemetry/Proto/Trace/V1/Span/Event.php \Opentelemetry\Proto\Trace\V1\Span\Event
- 11.1.x vendor/composer/composer/src/Composer/Script/Event.php \Composer\Script\Event
- 11.1.x vendor/composer/composer/src/Composer/EventDispatcher/Event.php \Composer\EventDispatcher\Event
- 11.1.x vendor/symfony/event-dispatcher-contracts/Event.php \Symfony\Contracts\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 \Symfony\Contracts\EventDispatcher\Event implements \Psr\EventDispatcher\StoppableEventInterface
- class \Drupal\Component\EventDispatcher\Event extends \Symfony\Contracts\EventDispatcher\Event
Expanded class hierarchy of Event
30 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
3 string references to 'Event'
- DatabaseBackend::schemaDefinition in core/
lib/ Drupal/ Core/ Flood/ DatabaseBackend.php - Defines the schema for the flood table.
- EventDriver::isSupported in vendor/
revolt/ event-loop/ src/ EventLoop/ Driver/ EventDriver.php - PerformanceTestRecorder::onRouteBuilderFinish in core/
lib/ Drupal/ Core/ Test/ PerformanceTestRecorder.php - Records a router rebuild.
File
-
core/
lib/ Drupal/ Component/ EventDispatcher/ Event.php, line 15
Namespace
Drupal\Component\EventDispatcherView source
class Event extends SymfonyEvent {
}