public function Variable::query in Drupal 9
Same name and namespace in other branches
- 8 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
File
- core/
modules/ migrate_drupal/ src/ Plugin/ migrate/ source/ Variable.php, line 159
Class
- Variable
- Drupal variable source from database.
Namespace
Drupal\migrate_drupal\Plugin\migrate\sourceCode
public function query() {
return $this
->getDatabase()
->select('variable', 'v')
->fields('v', [
'name',
'value',
])
->condition('name', $this->variables, 'IN');
}