You are here

public function Gauth::query in Google API PHP Client 8.3

Same name and namespace in other branches
  1. 8.4 src/Plugin/migrate/source/Gauth.php \Drupal\google_api_client\Plugin\migrate\source\Gauth::query()
  2. 8.2 src/Plugin/migrate/source/Gauth.php \Drupal\google_api_client\Plugin\migrate\source\Gauth::query()

Return value

\Drupal\Core\Database\Query\SelectInterface

Overrides SqlBase::query

File

src/Plugin/migrate/source/Gauth.php, line 22

Class

Gauth
Drupal 7 user source from database.

Namespace

Drupal\google_api_client\Plugin\migrate\source

Code

public function query() {
  return $this
    ->select('gauth_accounts', 'ga')
    ->fields('ga')
    ->condition('ga.id', 0, '>')
    ->condition('ga.name', Connection::escapeLike('Gauth Login ') . '%', 'NOT LIKE')
    ->condition('ga.name', '%' . Connection::escapeLike('|') . '%', 'NOT LIKE');
}