You are here

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

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

Get the entity.

Return value

\Drupal\Core\Entity\EntityInterface The entity.

File

modules/core_event_dispatcher/src/Event/Entity/EntityOperationAlterEvent.php, line 60

Class

EntityOperationAlterEvent
Class EntityOperationAlterEvent.

Namespace

Drupal\core_event_dispatcher\Event\Entity

Code

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