You are here

public function RoleWatchdog::query in Role Watchdog 8

Return value

\Drupal\Core\Database\Query\SelectInterface

Overrides SqlBase::query

File

src/Plugin/migrate/source/d6/RoleWatchdog.php, line 21

Class

RoleWatchdog
Drupal 6 role watchdog source from database.

Namespace

Drupal\role_watchdog\Plugin\migrate\source\d6

Code

public function query() {
  $query = $this
    ->select('role_watchdog', 'rw')
    ->fields('rw', [
    'aid',
    'action',
    'uid',
    'stamp',
  ])
    ->distinct();
  return $query;
}