public function ForwardLog::query in Forward 8
Same name and namespace in other branches
- 8.3 src/Plugin/migrate/source/ForwardLog.php \Drupal\forward\Plugin\migrate\source\ForwardLog::query()
- 8.2 src/Plugin/migrate/source/ForwardLog.php \Drupal\forward\Plugin\migrate\source\ForwardLog::query()
- 4.x src/Plugin/migrate/source/ForwardLog.php \Drupal\forward\Plugin\migrate\source\ForwardLog::query()
- 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 19
Class
- ForwardLog
- Forward statistics source.
Namespace
Drupal\forward\Plugin\migrate\sourceCode
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;
}