class EntityUpdateEvent in Hook Event Dispatcher 8
Class EntityUpdateEvent.
Hierarchy
- class \Drupal\hook_event_dispatcher\Event\Entity\BaseEntityEvent extends \Symfony\Component\EventDispatcher\Event implements EventInterface
- class \Drupal\hook_event_dispatcher\Event\Entity\EntityUpdateEvent
Expanded class hierarchy of EntityUpdateEvent
2 files declare their use of EntityUpdateEvent
- ExampleEntityEventSubscribers.php in src/
Example/ ExampleEntityEventSubscribers.php - hook_event_dispatcher.module in ./
hook_event_dispatcher.module - Hook event dispatcher module.
File
- src/
Event/ Entity/ EntityUpdateEvent.php, line 10
Namespace
Drupal\hook_event_dispatcher\Event\EntityView source
class EntityUpdateEvent extends BaseEntityEvent {
/**
* Get the original Entity.
*
* @see hook_entity_update()
*
* @return \Drupal\Core\Entity\EntityInterface
* The original entity.
*/
public function getOriginalEntity() {
return $this->entity->original;
}
/**
* {@inheritdoc}
*/
public function getDispatcherType() {
return HookEventDispatcherInterface::ENTITY_UPDATE;
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
BaseEntityEvent:: |
protected | property | The Entity. | |
BaseEntityEvent:: |
public | function | Get the Entity. | |
BaseEntityEvent:: |
public | function | Set the Entity. | |
BaseEntityEvent:: |
public | function | BaseEntityEvent constructor. | 4 |
EntityUpdateEvent:: |
public | function |
Get the dispatcher type. Overrides EventInterface:: |
|
EntityUpdateEvent:: |
public | function | Get the original Entity. |