public function EntityOperationEvent::getEntity in Hook Event Dispatcher 8.2
Same name and namespace in other branches
- 3.x 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\EntityCode
public function getEntity() : EntityInterface {
return $this->entity;
}