You are here

public function CommentType::query in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/comment/src/Plugin/migrate/source/d7/CommentType.php \Drupal\comment\Plugin\migrate\source\d7\CommentType::query()

Return value

\Drupal\Core\Database\Query\SelectInterface

Overrides SqlBase::query

File

core/modules/comment/src/Plugin/migrate/source/d7/CommentType.php, line 34
Contains \Drupal\comment\Plugin\migrate\source\d7\CommentType.

Class

CommentType
Drupal 7 comment type source from database.

Namespace

Drupal\comment\Plugin\migrate\source\d7

Code

public function query() {
  return $this
    ->select('field_config_instance', 'fci')
    ->distinct()
    ->fields('fci', array(
    'bundle',
  ))
    ->condition('entity_type', 'comment');
}