You are here

public function NodeType::query in Zircon Profile 8.0

Same name in this branch
  1. 8.0 core/modules/node/src/Plugin/migrate/source/d6/NodeType.php \Drupal\node\Plugin\migrate\source\d6\NodeType::query()
  2. 8.0 core/modules/node/src/Plugin/migrate/source/d7/NodeType.php \Drupal\node\Plugin\migrate\source\d7\NodeType::query()
Same name and namespace in other branches
  1. 8 core/modules/node/src/Plugin/migrate/source/d7/NodeType.php \Drupal\node\Plugin\migrate\source\d7\NodeType::query()

Return value

\Drupal\Core\Database\Query\SelectInterface

Overrides SqlBase::query

File

core/modules/node/src/Plugin/migrate/source/d7/NodeType.php, line 40
Contains \Drupal\node\Plugin\migrate\source\d7\NodeType.

Class

NodeType
Drupal 7 Node types source from database.

Namespace

Drupal\node\Plugin\migrate\source\d7

Code

public function query() {
  return $this
    ->select('node_type', 't')
    ->fields('t');
}