You are here

public function Newsletter::query in Simplenews 8

Same name and namespace in other branches
  1. 8.2 src/Plugin/migrate/source/d7/Newsletter.php \Drupal\simplenews\Plugin\migrate\source\d7\Newsletter::query()
  2. 3.x src/Plugin/migrate/source/d7/Newsletter.php \Drupal\simplenews\Plugin\migrate\source\d7\Newsletter::query()

Return value

\Drupal\Core\Database\Query\SelectInterface

Overrides SqlBase::query

File

src/Plugin/migrate/source/d7/Newsletter.php, line 55

Class

Newsletter
Migration source for Newsletter entities in D7.

Namespace

Drupal\simplenews\Plugin\migrate\source\d7

Code

public function query() {
  $version = $this
    ->getModuleSchemaVersion('simplenews');
  if ($version >= 7000 & $version < 7200) {
    return $this
      ->query71();
  }
  else {
    return $this
      ->query72();
  }
}