You are here

protected function FeedsExecutable::doProcess in Feeds 8.3

Processes an item.

Parameters

\Drupal\feeds\FeedInterface $feed: The feed to perform a process event on.

\Drupal\feeds\Feeds\Item\ItemInterface $item: The item to import.

1 call to FeedsExecutable::doProcess()
FeedsExecutable::processItem in src/FeedsExecutable.php
Processes a stage of an import.

File

src/FeedsExecutable.php, line 264

Class

FeedsExecutable
Defines a feeds executable class.

Namespace

Drupal\feeds

Code

protected function doProcess(FeedInterface $feed, ItemInterface $item) {
  $this
    ->dispatchEvent(FeedsEvents::INIT_IMPORT, new InitEvent($feed, 'process'));
  $this
    ->dispatchEvent(FeedsEvents::PROCESS, new ProcessEvent($feed, $item));
  $feed
    ->saveStates();
}