You are here

public function MigrateSourceSQL::computeCount in Migrate 7.2

Same name and namespace in other branches
  1. 6.2 plugins/sources/sql.inc \MigrateSourceSQL::computeCount()

Return a count of all available source records.

File

plugins/sources/sql.inc, line 264
Define a MigrateSource for importing from Drupal connections.

Class

MigrateSourceSQL
Implementation of MigrateSource, to handle imports from Drupal connections.

Code

public function computeCount() {
  $count = $this->countQuery
    ->execute()
    ->fetchField();
  return $count;
}