You are here

public function SerializeCdfEntityFieldEvent::__construct in Acquia Content Hub 8.2

SerializeCdfEntityFieldEvent constructor.

Parameters

\Drupal\Core\Entity\ContentEntityInterface $entity: The entity to which the field belongs.

string $field_name: The name of the field.

\Drupal\Core\Field\FieldItemListInterface $field: The field item list object.

\Acquia\ContentHubClient\CDF\CDFObject $cdf: The CDF Object being created.

File

src/Event/SerializeCdfEntityFieldEvent.php, line 69

Class

SerializeCdfEntityFieldEvent
Event fired when serializing individual entity fields for syndication.

Namespace

Drupal\acquia_contenthub\Event

Code

public function __construct(ContentEntityInterface $entity, string $field_name, FieldItemListInterface $field, CDFObject $cdf) {
  $this->entity = $entity;
  $this->fieldName = $field_name;
  $this->field = $field;
  $this->cdf = $cdf;
}