EntityUpdateEvent.php in Hook Event Dispatcher 8.2
File
modules/core_event_dispatcher/src/Event/Entity/EntityUpdateEvent.php
View source
<?php
namespace Drupal\core_event_dispatcher\Event\Entity;
use Drupal\Core\Entity\EntityInterface;
use Drupal\hook_event_dispatcher\HookEventDispatcherInterface;
class EntityUpdateEvent extends AbstractEntityEvent {
public function getOriginalEntity() : EntityInterface {
return $this->entity->original;
}
public function getDispatcherType() : string {
return HookEventDispatcherInterface::ENTITY_UPDATE;
}
}