You are here

public function Feed::startBatchImport in Feeds 8.3

Starts importing a feed via the batch API.

Throws

\Exception Thrown if an un-recoverable error has occurred.

Overrides FeedInterface::startBatchImport

File

src/Entity/Feed.php, line 263

Class

Feed
Defines the feed entity class.

Namespace

Drupal\feeds\Entity

Code

public function startBatchImport() {
  $this
    ->entityTypeManager()
    ->getHandler('feeds_feed', 'feed_import')
    ->startBatchImport($this);
}