ReplicateEntityFieldEvent.php in Replicate 8
File
src/Events/ReplicateEntityFieldEvent.php
View source
<?php
namespace Drupal\replicate\Events;
use Drupal\Core\Entity\EntityInterface;
use Drupal\Core\Field\FieldItemListInterface;
class ReplicateEntityFieldEvent extends ReplicateEventBase {
protected $fieldItemList;
public function __construct(FieldItemListInterface $field_item_list, EntityInterface $entity) {
parent::__construct($entity);
$this->fieldItemList = $field_item_list;
}
public function getFieldItemList() {
return $this->fieldItemList;
}
}