You are here

public function EntityUpdateEvent::getOriginalEntity in Hook Event Dispatcher 8.2

Same name and namespace in other branches
  1. 3.x modules/core_event_dispatcher/src/Event/Entity/EntityUpdateEvent.php \Drupal\core_event_dispatcher\Event\Entity\EntityUpdateEvent::getOriginalEntity()

Get the original Entity.

Return value

\Drupal\Core\Entity\EntityInterface The original entity.

See also

hook_entity_update()

File

modules/core_event_dispatcher/src/Event/Entity/EntityUpdateEvent.php, line 21

Class

EntityUpdateEvent
Class EntityUpdateEvent.

Namespace

Drupal\core_event_dispatcher\Event\Entity

Code

public function getOriginalEntity() : EntityInterface {
  return $this->entity->original;
}