function CommentType::query

Return value

\Drupal\Core\Database\Query\SelectInterface

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.