You are here

public function EntityPresaveEvent::getOriginalEntity in Hook Event Dispatcher 8

Get the original Entity.

Return value

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

See also

hook_entity_update()

File

src/Event/Entity/EntityPresaveEvent.php, line 20

Class

EntityPresaveEvent
Class EntityPresaveEvent.

Namespace

Drupal\hook_event_dispatcher\Event\Entity

Code

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