function CommentType::query

Same name and namespace in other branches
  1. 9 core/modules/comment/src/Plugin/migrate/source/CommentType.php \Drupal\comment\Plugin\migrate\source\CommentType::query()
  2. 8.9.x core/modules/comment/src/Plugin/migrate/source/d7/CommentType.php \Drupal\comment\Plugin\migrate\source\d7\CommentType::query()
  3. 10 core/modules/comment/src/Plugin/migrate/source/CommentType.php \Drupal\comment\Plugin\migrate\source\CommentType::query()

Overrides SqlBase::query

File

core/modules/comment/src/Plugin/migrate/source/CommentType.php, line 27

Class

CommentType
Drupal 6/7 comment types source from database.

Namespace

Drupal\comment\Plugin\migrate\source

Code

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

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.