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