You are here

public function DomainRecord::query in Domain Access 8

Return value

\Drupal\Core\Database\Query\SelectInterface

Overrides SqlBase::query

File

domain/src/Plugin/migrate/source/d7/DomainRecord.php, line 20

Class

DomainRecord
Drupal 7 Domain source from database.

Namespace

Drupal\domain\Plugin\migrate\source\d7

Code

public function query() {
  $fields = [
    'domain_id',
    'subdomain',
    'sitename',
    'scheme',
    'valid',
    'weight',
    'is_default',
    'machine_name',
  ];
  return $this
    ->select('domain', 'd')
    ->fields('d', $fields);
}