function MigrateMissingDatabaseSource::query

Same name in other branches
  1. 10 core/modules/migrate/tests/modules/migrate_missing_database_test/src/Plugin/migrate/source/MigrateMissingDatabaseSource.php \Drupal\migrate_missing_database_test\Plugin\migrate\source\MigrateMissingDatabaseSource::query()

Overrides SqlBase::query

File

core/modules/migrate/tests/modules/migrate_missing_database_test/src/Plugin/migrate/source/MigrateMissingDatabaseSource.php, line 24

Class

MigrateMissingDatabaseSource
A simple migrate source for the missing database tests.

Namespace

Drupal\migrate_missing_database_test\Plugin\migrate\source

Code

public function query() : SelectInterface {
    $field_names = [
        'id',
    ];
    $query = $this->select('missing_database', 'm')
        ->fields('m', $field_names);
    return $query;
}

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