protected function SqlBase::doCount in Drupal 9
Gets the source count using countQuery().
Overrides SourcePluginBase::doCount
File
- core/
modules/ migrate/ src/ Plugin/ migrate/ source/ SqlBase.php, line 388
Class
- SqlBase
- Sources whose data may be fetched via a database connection.
Namespace
Drupal\migrate\Plugin\migrate\sourceCode
protected function doCount() {
return (int) $this
->query()
->countQuery()
->execute()
->fetchField();
}