You are here

public function CommentType::query in Drupal 10

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()

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',
  ]);
}