You are here

public function EntityEvent::__construct in Feeds 8.3

Constructs an EntityEvent object.

Parameters

\Drupal\feeds\FeedInterface $feed: The feed.

\Drupal\Core\Entity\EntityInterface $entity: The entity being inserted or updated.

\Drupal\feeds\Feeds\Item\ItemInterface $item: The item that is being processed.

Overrides EventBase::__construct

File

src/Event/EntityEvent.php, line 38

Class

EntityEvent
Fired at various phases during the process stage.

Namespace

Drupal\feeds\Event

Code

public function __construct(FeedInterface $feed, EntityInterface $entity, ItemInterface $item) {
  parent::__construct($feed);
  $this->entity = $entity;
  $this->item = $item;
}