You are here

public function Feed::dispatchEntityEvent in Feeds 8.3

Dispatches an entity event.

Parameters

string $event: The event to invoke.

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

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

Overrides FeedInterface::dispatchEntityEvent

File

src/Entity/Feed.php, line 308

Class

Feed
Defines the feed entity class.

Namespace

Drupal\feeds\Entity

Code

public function dispatchEntityEvent($event, EntityInterface $entity, ItemInterface $item) {
  return $this
    ->eventDispatcher()
    ->dispatch($event, new EntityEvent($this, $entity, $item));
}