Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. SqlBase.php

function SqlBase::doCount

Gets the source count using countQuery().

Overrides SourcePluginBase::doCount

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

... See full list

File

core/modules/migrate/src/Plugin/migrate/source/SqlBase.php, line 393

Class

SqlBase
Sources whose data may be fetched via a database connection.

Namespace

Drupal\migrate\Plugin\migrate\source

Code

protected function doCount() {
    return (int) $this->query()
        ->countQuery()
        ->execute()
        ->fetchField();
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal