public function Feed::clearStates in Feeds 8.3
Clears all state objects for the feed.
Overrides FeedInterface::clearStates
2 calls to Feed::clearStates()
- Feed::finishClear in src/
Entity/ Feed.php - Cleans up after an import.
- Feed::finishImport in src/
Entity/ Feed.php - Cleans up after an import.
File
- src/
Entity/ Feed.php, line 398
Class
- Feed
- Defines the feed entity class.
Namespace
Drupal\feeds\EntityCode
public function clearStates() {
$this->states = [];
\Drupal::keyValue('feeds_feed.' . $this
->id())
->deleteAll();
// Clean up references in feeds_clean_list table for this feed.
\Drupal::database()
->delete(CleanState::TABLE_NAME)
->condition('feed_id', $this
->id())
->execute();
}