You are here

public function CustomPub::query in Custom Publishing Options 8

Return value

\Drupal\Core\Database\Query\SelectInterface

Overrides SqlBase::query

File

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

Class

CustomPub
Drupal 7 custom_pub from database.

Namespace

Drupal\custom_pub\Plugin\migrate\source\d7

Code

public function query() {

  // Select path redirects.
  $query = $this
    ->select('node', 'n')
    ->fields('n');
  if (isset($this->configuration['node_type'])) {
    $query
      ->condition('n.type', $this->configuration['node_type']);
  }
  return $query;
}