You are here

public function ParseCdfEntityEvent::setEntity in Acquia Content Hub 8.2

Sets the parsed entity.

Parameters

\Drupal\Core\Entity\EntityInterface $entity: The entity parsed from the CDF.

File

src/Event/ParseCdfEntityEvent.php, line 124

Class

ParseCdfEntityEvent
The event fired during importing a CDF into a local entity.

Namespace

Drupal\acquia_contenthub\Event

Code

public function setEntity(EntityInterface $entity) {
  $this->entity = $entity;
}