You are here

public function CdfAttributesEvent::__construct in Acquia Content Hub 8.2

CdfAttributesEvent constructor.

Parameters

\Acquia\ContentHubClient\CDF\CDFObject $cdf: The CDF object.

\Drupal\Core\Entity\EntityInterface $entity: The entity.

\Drupal\depcalc\DependentEntityWrapperInterface $wrapper: Dependent entity wrapper.

File

src/Event/CdfAttributesEvent.php, line 46

Class

CdfAttributesEvent
The event which adds custom CDF attributes to the CDF objects.

Namespace

Drupal\acquia_contenthub\Event

Code

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