public function CommentType::query in Drupal 8
Return value
\Drupal\Core\Database\Query\SelectInterface
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');
}