You are here

public function EntityOperationEvent::getEntity in Hook Event Dispatcher 3.x

Same name and namespace in other branches
  1. 8.2 modules/core_event_dispatcher/src/Event/Entity/EntityOperationEvent.php \Drupal\core_event_dispatcher\Event\Entity\EntityOperationEvent::getEntity()

Get the entity.

Return value

\Drupal\Core\Entity\EntityInterface The entity.

File

modules/core_event_dispatcher/src/Event/Entity/EntityOperationEvent.php, line 45

Class

EntityOperationEvent
Class EntityLoadEvent.

Namespace

Drupal\core_event_dispatcher\Event\Entity

Code

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