function SqlBase::count

Overrides SourcePluginBase::count

6 methods override SqlBase::count()
EntityTranslationSettings::count in core/modules/content_translation/src/Plugin/migrate/source/d7/EntityTranslationSettings.php
Gets the source count.
FieldInstance::count in core/modules/field/src/Plugin/migrate/source/d7/FieldInstance.php
Gets the source count.
Variable::count in core/modules/migrate_drupal/src/Plugin/migrate/source/Variable.php
Gets the source count.
VariableTranslation::count in core/modules/migrate_drupal/src/Plugin/migrate/source/d6/VariableTranslation.php
Gets the source count.
VariableTranslation::count in core/modules/migrate_drupal/src/Plugin/migrate/source/d7/VariableTranslation.php
Gets the source count.

... See full list

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\source

Code

public function count($refresh = FALSE) {
    return (int) $this->query()
        ->countQuery()
        ->execute()
        ->fetchField();
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.