public function CleanState::count in Feeds 8.3
2 calls to CleanState::count()
- CleanState::progress in src/
Feeds/ State/ CleanState.php - Reports the progress of a batch.
- CleanState::removeItem in src/
Feeds/ State/ CleanState.php - Removes a specific item from the list.
File
- src/
Feeds/ State/ CleanState.php, line 199
Class
- CleanState
- State for the clean stage.
Namespace
Drupal\feeds\Feeds\StateCode
public function count() {
return (int) $this->connection
->query('SELECT COUNT(feed_id) FROM {' . static::TABLE_NAME . '} WHERE feed_id = :feed_id', [
':feed_id' => $this->feedId,
])
->fetchField();
}