function CommentType::query
Same name in other branches
- 9 core/modules/comment/src/Plugin/migrate/source/CommentType.php \Drupal\comment\Plugin\migrate\source\CommentType::query()
- 10 core/modules/comment/src/Plugin/migrate/source/CommentType.php \Drupal\comment\Plugin\migrate\source\CommentType::query()
- 11.x 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/ d7/ CommentType.php, line 34
Class
- CommentType
- Drupal 7 comment type source from database.
Namespace
Drupal\comment\Plugin\migrate\source\d7Code
public function query() {
return $this->select('field_config_instance', 'fci')
->distinct()
->fields('fci', [
'bundle',
])
->condition('fci.entity_type', 'comment');
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.