You are here

class ReplicateEntityFieldEvent in Replicate 8

Hierarchy

Expanded class hierarchy of ReplicateEntityFieldEvent

3 files declare their use of ReplicateEntityFieldEvent
ReplicatePathFieldSubscriber.php in src/EventSubscriber/ReplicatePathFieldSubscriber.php
Replicator.php in src/Replicator.php
ReplicatorTest.php in tests/src/Unit/ReplicatorTest.php

File

src/Events/ReplicateEntityFieldEvent.php, line 8

Namespace

Drupal\replicate\Events
View source
class ReplicateEntityFieldEvent extends ReplicateEventBase {

  /**
   * The field item list.
   *
   * @var \Drupal\Core\Field\FieldItemListInterface
   */
  protected $fieldItemList;

  /**
   * Creates a new ReplicateEntityFieldEvent instance.
   *
   * @param \Drupal\Core\Field\FieldItemListInterface $field_item_list
   *   The field item list.
   * @param \Drupal\Core\Entity\EntityInterface $entity
   *   The entity.
   */
  public function __construct(FieldItemListInterface $field_item_list, EntityInterface $entity) {
    parent::__construct($entity);
    $this->fieldItemList = $field_item_list;
  }

  /**
   * @return FieldItemListInterface
   */
  public function getFieldItemList() {
    return $this->fieldItemList;
  }

}

Members

Namesort descending Modifiers Type Description Overrides
ReplicateEntityFieldEvent::$fieldItemList protected property The field item list.
ReplicateEntityFieldEvent::getFieldItemList public function
ReplicateEntityFieldEvent::__construct public function Creates a new ReplicateEntityFieldEvent instance. Overrides ReplicateEventBase::__construct
ReplicateEventBase::$entity protected property
ReplicateEventBase::getEntity public function