You are here

public function ExcludeEntityFieldEvent::getEntity in Acquia Content Hub 8.2

Get the entity being processed.

Return value

\Drupal\Core\Entity\EntityInterface The entity being processed.

File

src/Event/ExcludeEntityFieldEvent.php, line 72

Class

ExcludeEntityFieldEvent
Event fired when serializing individual entity fields for syndication.

Namespace

Drupal\acquia_contenthub\Event

Code

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