diff --git a/core/modules/migrate/src/Plugin/migrate/source/SqlBase.php b/core/modules/migrate/src/Plugin/migrate/source/SqlBase.php index 3c6d4c4..b79d4d9 100644 --- a/core/modules/migrate/src/Plugin/migrate/source/SqlBase.php +++ b/core/modules/migrate/src/Plugin/migrate/source/SqlBase.php @@ -330,8 +330,11 @@ /** * {@inheritdoc} */ - public function count() { - return $this->query()->countQuery()->execute()->fetchField(); + public function count($refresh=FALSE) { + + // We keep the parent call to utilize source count information. + parent::count($refresh); + return $this->query()->countQuery()->execute()->fetchField(); } /**