public function MigrateSQLMap::processedCount in Migrate 7.2
Same name and namespace in other branches
- 6.2 plugins/sources/sqlmap.inc \MigrateSQLMap::processedCount()
Returns a count of records in the map table (i.e., the number of source records which have been processed for this migration).
Return value
int
Overrides MigrateMap::processedCount
File
- plugins/
sources/ sqlmap.inc, line 509 - Defines a Drupal db-based implementation of MigrateMap.
Class
- MigrateSQLMap
- @file Defines a Drupal db-based implementation of MigrateMap.
Code
public function processedCount() {
$query = $this->connection
->select($this->mapTable);
$query
->addExpression('COUNT(*)', 'count');
$count = $query
->execute()
->fetchField();
return $count;
}