You are here

public function PathRedirect::query in Redirect 8

Same name in this branch
  1. 8 src/Plugin/migrate/source/PathRedirect.php \Drupal\redirect\Plugin\migrate\source\PathRedirect::query()
  2. 8 src/Plugin/migrate/source/d7/PathRedirect.php \Drupal\redirect\Plugin\migrate\source\d7\PathRedirect::query()

Return value

\Drupal\Core\Database\Query\SelectInterface

Overrides SqlBase::query

File

src/Plugin/migrate/source/d7/PathRedirect.php, line 26
Contains \Drupal\redirect\Plugin\migrate\source\d7\PathRedirect.

Class

PathRedirect
Drupal 7 path redirect source from database.

Namespace

Drupal\redirect\Plugin\migrate\source\d7

Code

public function query() {

  // Select path redirects.
  $query = $this
    ->select('redirect', 'p')
    ->fields('p');
  return $query;
}