You are here

public function ReplicateEntityFieldEvent::__construct in Replicate 8

Creates a new ReplicateEntityFieldEvent instance.

Parameters

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

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

Overrides ReplicateEventBase::__construct

File

src/Events/ReplicateEntityFieldEvent.php, line 25

Class

ReplicateEntityFieldEvent

Namespace

Drupal\replicate\Events

Code

public function __construct(FieldItemListInterface $field_item_list, EntityInterface $entity) {
  parent::__construct($entity);
  $this->fieldItemList = $field_item_list;
}