public function ParseCdfEntityEvent::__construct in Acquia Content Hub 8.2
ParseCdfEntityEvent constructor.
Parameters
\Acquia\ContentHubClient\CDF\CDFObject $cdf: The CDF being parsed.
\Drupal\depcalc\DependencyStack $stack: The dependency stack object.
\Drupal\Core\Entity\EntityInterface $entity: The pre-loaded or created entity for data storage.
File
- src/
Event/ ParseCdfEntityEvent.php, line 62
Class
- ParseCdfEntityEvent
- The event fired during importing a CDF into a local entity.
Namespace
Drupal\acquia_contenthub\EventCode
public function __construct(CDFObject $cdf, DependencyStack $stack, EntityInterface $entity = NULL) {
$this->cdf = $cdf;
$this->stack = $stack;
$this->entity = $entity;
}