You are here

public function SerializeAdditionalMetadataEvent::__construct in Acquia Content Hub 8.2

CreateCdfEntityEvent constructor.

Parameters

\Drupal\Core\Entity\ContentEntityInterface $entity: The entity being serialized.

\Acquia\ContentHubClient\CDF\CDFObject $cdf: The CDF object generated for this entity.

File

src/Event/SerializeAdditionalMetadataEvent.php, line 39

Class

SerializeAdditionalMetadataEvent
The event dispatched to serialize additional metadata for a Content Entity.

Namespace

Drupal\acquia_contenthub\Event

Code

public function __construct(ContentEntityInterface $entity, CDFObject $cdf) {
  $this->entity = $entity;
  $this->cdf = $cdf;
}