You are here

public function BeerUser::query in Migrate Plus 8

Same name and namespace in other branches
  1. 8.5 migrate_example/src/Plugin/migrate/source/BeerUser.php \Drupal\migrate_example\Plugin\migrate\source\BeerUser::query()
  2. 8.2 migrate_example/src/Plugin/migrate/source/BeerUser.php \Drupal\migrate_example\Plugin\migrate\source\BeerUser::query()
  3. 8.3 migrate_example/src/Plugin/migrate/source/BeerUser.php \Drupal\migrate_example\Plugin\migrate\source\BeerUser::query()
  4. 8.4 migrate_example/src/Plugin/migrate/source/BeerUser.php \Drupal\migrate_example\Plugin\migrate\source\BeerUser::query()

Return value

\Drupal\Core\Database\Query\SelectInterface

Overrides SqlBase::query

File

migrate_example/src/Plugin/migrate/source/BeerUser.php, line 25
Contains \Drupal\migrate_example\Plugin\migrate\source\BeerUser.

Class

BeerUser
Source plugin for beer user accounts.

Namespace

Drupal\migrate_example\Plugin\migrate\source

Code

public function query() {
  return $this
    ->select('migrate_example_beer_account', 'mea')
    ->fields('mea', [
    'aid',
    'status',
    'registered',
    'username',
    'nickname',
    'password',
    'email',
    'sex',
    'beers',
  ]);
}