You are here

public function VariableMultiRow::query in Drupal 10

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

Return value

\Drupal\Core\Database\Query\SelectInterface

Overrides SqlBase::query

1 method overrides VariableMultiRow::query()
ThemeSettings::query in core/modules/system/src/Plugin/migrate/source/d7/ThemeSettings.php

File

core/modules/migrate_drupal/src/Plugin/migrate/source/VariableMultiRow.php, line 47

Class

VariableMultiRow
Drupal 6/7 multiple variables source from database.

Namespace

Drupal\migrate_drupal\Plugin\migrate\source

Code

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