You are here

public function Variable::query in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/migrate_drupal/src/Plugin/migrate/source/Variable.php \Drupal\migrate_drupal\Plugin\migrate\source\Variable::query()
  2. 9 core/modules/migrate_drupal/src/Plugin/migrate/source/Variable.php \Drupal\migrate_drupal\Plugin\migrate\source\Variable::query()

Return value

\Drupal\Core\Database\Query\SelectInterface

Overrides SqlBase::query

1 call to Variable::query()
Variable::doCount in core/modules/migrate_drupal/src/Plugin/migrate/source/Variable.php
Gets the source count using countQuery().

File

core/modules/migrate_drupal/src/Plugin/migrate/source/Variable.php, line 160

Class

Variable
Drupal 6/7 variable source from database.

Namespace

Drupal\migrate_drupal\Plugin\migrate\source

Code

public function query() {
  return $this
    ->getDatabase()
    ->select('variable', 'v')
    ->fields('v', [
    'name',
    'value',
  ])
    ->condition('name', $this->variables, 'IN');
}