Same name in this branch
  1. 10 core/modules/node/src/Plugin/migrate/source/d6/NodeType.php \Drupal\node\Plugin\migrate\source\d6\NodeType::query()
  2. 10 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.9.x core/modules/node/src/Plugin/migrate/source/d6/NodeType.php \Drupal\node\Plugin\migrate\source\d6\NodeType::query()
  2. 9 core/modules/node/src/Plugin/migrate/source/d6/NodeType.php \Drupal\node\Plugin\migrate\source\d6\NodeType::query()

Return value

\Drupal\Core\Database\Query\SelectInterface

Overrides SqlBase::query

File

core/modules/node/src/Plugin/migrate/source/d6/NodeType.php, line 47

Class

NodeType
Drupal 6 Node types source from database.

Namespace

Drupal\node\Plugin\migrate\source\d6

Code

public function query() {
  return $this
    ->select('node_type', 't')
    ->fields('t', [
    'type',
    'name',
    'module',
    'description',
    'help',
    'title_label',
    'has_body',
    'body_label',
    'min_word_count',
    'custom',
    'modified',
    'locked',
    'orig_type',
  ])
    ->orderBy('t.type');
}