You are here

public function Extension::query in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/system/src/Plugin/migrate/source/Extension.php \Drupal\system\Plugin\migrate\source\Extension::query()
  2. 9 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 42

Class

Extension
Drupal 6/7 system data for a legacy extension source from database.

Namespace

Drupal\system\Plugin\migrate\source

Code

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;
}