You are here

protected function DrupalRoleMigration::query in Drupal-to-Drupal data migration 7.2

Query for the basic role data.

Return value

QueryConditionInterface

Overrides DrupalMigration::query

1 call to DrupalRoleMigration::query()
DrupalRoleMigration::__construct in ./role.inc

File

./role.inc, line 56
Base class for migrating roles into Drupal.

Class

DrupalRoleMigration
Base class for all role migrations - handles commonalities across all supported source Drupal versions.

Code

protected function query() {

  // Do not attempt to migrate the anonymous or authenticated roles.
  $query = Database::getConnection('default', $this->sourceConnection)
    ->select('role', 'r')
    ->fields('r')
    ->condition('rid', 2, '>');
  return $query;
}