You are here

public function Feed::startBatchExpire in Feeds 8.3

Removes all expired items from a feed via batch api.

Throws

\Exception Re-throws any exception that bubbles up.

Overrides FeedInterface::startBatchExpire

File

src/Entity/Feed.php, line 299

Class

Feed
Defines the feed entity class.

Namespace

Drupal\feeds\Entity

Code

public function startBatchExpire() {
  return $this
    ->entityTypeManager()
    ->getHandler('feeds_feed', 'feed_expire')
    ->startBatchExpire($this);
}