function Extension::query

Same name in other branches
  1. 9 core/modules/system/src/Plugin/migrate/source/Extension.php \Drupal\system\Plugin\migrate\source\Extension::query()
  2. 8.9.x core/modules/system/src/Plugin/migrate/source/Extension.php \Drupal\system\Plugin\migrate\source\Extension::query()
  3. 10 core/modules/system/src/Plugin/migrate/source/Extension.php \Drupal\system\Plugin\migrate\source\Extension::query()

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

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.