public function PreEntitySaveEvent::getEntity in Acquia Content Hub 8.2
Get the entity.
Return value
\Drupal\Core\Entity\EntityInterface Entity Interface.
File
- src/
Event/ PreEntitySaveEvent.php, line 60
Class
- PreEntitySaveEvent
- Event that fires prior to an entity save.
Namespace
Drupal\acquia_contenthub\EventCode
public function getEntity() : EntityInterface {
return $this->entity;
}