public function SerializeAdditionalMetadataEvent::getEntity in Acquia Content Hub 8.2
Returns content entity event holds.
Return value
\Drupal\Core\Entity\ContentEntityInterface Current entity event holds.
File
- src/
Event/ SerializeAdditionalMetadataEvent.php, line 50
Class
- SerializeAdditionalMetadataEvent
- The event dispatched to serialize additional metadata for a Content Entity.
Namespace
Drupal\acquia_contenthub\EventCode
public function getEntity() : ContentEntityInterface {
return $this->entity;
}