public function Extension::query in Drupal 8
Same name and namespace in other branches
- 9 core/modules/system/src/Plugin/migrate/source/Extension.php \Drupal\system\Plugin\migrate\source\Extension::query()
- 10 core/modules/system/src/Plugin/migrate/source/Extension.php \Drupal\system\Plugin\migrate\source\Extension::query()
Return value
\Drupal\Core\Database\Query\SelectInterface
Overrides SqlBase::query
File
- core/
modules/ system/ src/ Plugin/ migrate/ source/ Extension.php, line 21
Class
- Extension
- Gets system data for a legacy extension.
Namespace
Drupal\system\Plugin\migrate\sourceCode
public function query() {
$query = $this
->select('system', 's')
->fields('s');
if (isset($this->configuration['name'])) {
$query
->condition('name', (array) $this->configuration['name'], 'IN');
}
return $query;
}