public function EntityPresaveEvent::getOriginalEntity in Hook Event Dispatcher 8
Get the original Entity.
Return value
\Drupal\Core\Entity\EntityInterface The original entity.
See also
File
- src/
Event/ Entity/ EntityPresaveEvent.php, line 20
Class
- EntityPresaveEvent
- Class EntityPresaveEvent.
Namespace
Drupal\hook_event_dispatcher\Event\EntityCode
public function getOriginalEntity() {
return $this->entity->original;
}