You are here

public function PrivateContent::query in Private 8

Same name and namespace in other branches
  1. 8.2 src/Plugin/migrate/source/d6/PrivateContent.php \Drupal\private_content\Plugin\migrate\source\d6\PrivateContent::query()

Return value

\Drupal\Core\Database\Query\SelectInterface

Overrides SqlBase::query

File

src/Plugin/migrate/source/d6/PrivateContent.php, line 20

Class

PrivateContent
Migrates private content.

Namespace

Drupal\private_content\Plugin\migrate\source\d6

Code

public function query() {
  $query = $this
    ->select('private', 'p')
    ->fields('p', array(
    'nid',
    'private',
  ));
  return $query;
}