You are here

public function LegalConditions::query in Legal 8

Same name and namespace in other branches
  1. 2.0.x src/Plugin/migrate/source/d7/LegalConditions.php \Drupal\legal\Plugin\migrate\source\d7\LegalConditions::query()

Return value

\Drupal\Core\Database\Query\SelectInterface

Overrides SqlBase::query

File

src/Plugin/migrate/source/d7/LegalConditions.php, line 21

Class

LegalConditions
Drupal 7 source plugin for Legal T&Cs.

Namespace

Drupal\legal\Plugin\migrate\source\d7

Code

public function query() {
  $query = $this
    ->select('legal_conditions', 'c')
    ->fields('c')
    ->orderBy('c.tc_id');
  return $query;
}