You are here

public function ForwardLog::query in Forward 4.x

Same name and namespace in other branches
  1. 8.3 src/Plugin/migrate/source/ForwardLog.php \Drupal\forward\Plugin\migrate\source\ForwardLog::query()
  2. 8 src/Plugin/migrate/source/ForwardLog.php \Drupal\forward\Plugin\migrate\source\ForwardLog::query()
  3. 8.2 src/Plugin/migrate/source/ForwardLog.php \Drupal\forward\Plugin\migrate\source\ForwardLog::query()
  4. 4.0.x src/Plugin/migrate/source/ForwardLog.php \Drupal\forward\Plugin\migrate\source\ForwardLog::query()

Return value

\Drupal\Core\Database\Query\SelectInterface

Overrides SqlBase::query

File

src/Plugin/migrate/source/ForwardLog.php, line 20

Class

ForwardLog
Forward statistics source.

Namespace

Drupal\forward\Plugin\migrate\source

Code

public function query() {
  $query = $this
    ->select('forward_log', 'f');
  $query = $query
    ->fields('f', [
    'path',
    'type',
    'timestamp',
    'uid',
    'hostname',
  ])
    ->condition('path', 'node/%', 'LIKE')
    ->condition('type', 'SENT')
    ->orderBy('timestamp');
  return $query;
}