You are here

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

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

Get the Entity.

Return value

\Drupal\Core\Entity\EntityInterface The Entity.

File

modules/core_event_dispatcher/src/Event/Entity/AbstractEntityEvent.php, line 37

Class

AbstractEntityEvent
Class AbstractEntityEvent.

Namespace

Drupal\core_event_dispatcher\Event\Entity

Code

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