class EntityUpdateEvent in Hook Event Dispatcher 3.x
Same name and namespace in other branches
- 8.2 modules/core_event_dispatcher/src/Event/Entity/EntityUpdateEvent.php \Drupal\core_event_dispatcher\Event\Entity\EntityUpdateEvent
Class EntityUpdateEvent.
Hierarchy
- class \Drupal\core_event_dispatcher\Event\Entity\AbstractEntityEvent extends \Symfony\Component\EventDispatcher\Event implements EventInterface
- class \Drupal\core_event_dispatcher\Event\Entity\EntityUpdateEvent
Expanded class hierarchy of EntityUpdateEvent
2 files declare their use of EntityUpdateEvent
- core_event_dispatcher.module in modules/
core_event_dispatcher/ core_event_dispatcher.module - Core event dispatcher submodule.
- ExampleEntityEventSubscribers.php in examples/
ExampleEntityEventSubscribers.php
File
- modules/
core_event_dispatcher/ src/ Event/ Entity/ EntityUpdateEvent.php, line 11
Namespace
Drupal\core_event_dispatcher\Event\EntityView source
class EntityUpdateEvent extends AbstractEntityEvent {
/**
* Get the original Entity.
*
* @see hook_entity_update()
*
* @return \Drupal\Core\Entity\EntityInterface
* The original entity.
*/
public function getOriginalEntity() : EntityInterface {
return $this->entity->original;
}
/**
* {@inheritdoc}
*/
public function getDispatcherType() : string {
return HookEventDispatcherInterface::ENTITY_UPDATE;
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
AbstractEntityEvent:: |
protected | property | The Entity. | |
AbstractEntityEvent:: |
public | function | Get the Entity. | |
AbstractEntityEvent:: |
public | function | AbstractEntityEvent constructor. | 4 |
EntityUpdateEvent:: |
public | function |
Get the dispatcher type. Overrides EventInterface:: |
|
EntityUpdateEvent:: |
public | function | Get the original Entity. |