You are here

public function MessageSource::query in Message 8

Return value

\Drupal\Core\Database\Query\SelectInterface

Overrides SqlBase::query

File

src/Plugin/migrate/source/MessageSource.php, line 26
Contains \Drupal\message\Plugin\migrate\source.

Class

MessageSource
Drupal 7 message source from database.

Namespace

Drupal\message\Plugin\migrate\source

Code

public function query() {
  $query = $this
    ->select('message', 'm');
  $query
    ->fields('m', [
    'mid',
    'type',
    'arguments',
    'uid',
    'timestamp',
    'language',
  ]);
  $query
    ->orderBy('timestamp');
  return $query;
}