You are here

public function FeedImportHandler::import in Feeds 8.3

Imports the whole feed at once.

Parameters

\Drupal\feeds\FeedInterface $feed: The feed to import for.

Throws

\Exception In case of an error.

File

src/FeedImportHandler.php, line 23

Class

FeedImportHandler
Runs the actual import on a feed.

Namespace

Drupal\feeds

Code

public function import(FeedInterface $feed) {
  $this
    ->getExecutable(FeedsExecutable::class)
    ->processItem($feed, FeedsExecutable::BEGIN);
}