public function EntityImportEvent::__construct in Acquia Content Hub 8.2
EntityImportEvent constructor.
Parameters
\Drupal\Core\Entity\EntityInterface $entity: The entity tht was saved.
\Acquia\ContentHubClient\CDF\CDFObject $entity_data: The CDF level data from which we saved the entity.
File
- src/
Event/ EntityImportEvent.php, line 43
Class
- EntityImportEvent
- An event for invoking post-entity-save operations.
Namespace
Drupal\acquia_contenthub\EventCode
public function __construct(EntityInterface $entity, CDFObject $entity_data) {
$this->entity = $entity;
$this->entityData = $entity_data;
}