You are here

public function Feed::startBatchClear in Feeds 8.3

Start deleting all imported items of a feed via the batch API.

Throws

\Exception If processing in background is enabled, the first batch chunk of the clear task will be executed on the current page request.

Overrides FeedInterface::startBatchClear

File

src/Entity/Feed.php, line 290

Class

Feed
Defines the feed entity class.

Namespace

Drupal\feeds\Entity

Code

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