public function FeedsProcessor::itemCount in Feeds 8.2
Counts the number of items imported by this processor.
File
- lib/
Drupal/ feeds/ Plugin/ FeedsProcessor.php, line 492 - Contains FeedsProcessor and related classes.
Class
- FeedsProcessor
- Abstract class, defines interface for processors.
Namespace
Drupal\feeds\PluginCode
public function itemCount(FeedsSource $source) {
return db_query("SELECT count(*) FROM {feeds_item} WHERE id = :id AND entity_type = :entity_type AND feed_nid = :feed_nid", array(
':id' => $this->id,
':entity_type' => $this
->entityType(),
':feed_nid' => $source->feed_nid,
))
->fetchField();
}