public function EntityProcessorBase::getItemCount in Feeds 8.3
Counts the number of items imported by this processor.
Parameters
\Drupal\feeds\FeedInterface $feed: The feed who's items we are counting.
Return value
int The number of items imported by this feed.
Overrides ProcessorInterface::getItemCount
File
- src/
Feeds/ Processor/ EntityProcessorBase.php, line 836
Class
- EntityProcessorBase
- Defines a base entity processor.
Namespace
Drupal\feeds\Feeds\ProcessorCode
public function getItemCount(FeedInterface $feed) {
return $this->entityTypeManager
->getStorage($this
->entityType())
->getQuery()
->condition('feeds_item.target_id', $feed
->id())
->count()
->execute();
}