function ContactCategory::query
Same name in other branches
- 8.9.x core/modules/contact/src/Plugin/migrate/source/ContactCategory.php \Drupal\contact\Plugin\migrate\source\ContactCategory::query()
- 10 core/modules/contact/src/Plugin/migrate/source/ContactCategory.php \Drupal\contact\Plugin\migrate\source\ContactCategory::query()
- 11.x core/modules/contact/src/Plugin/migrate/source/ContactCategory.php \Drupal\contact\Plugin\migrate\source\ContactCategory::query()
Overrides SqlBase::query
File
-
core/
modules/ contact/ src/ Plugin/ migrate/ source/ ContactCategory.php, line 26
Class
- ContactCategory
- Drupal 6/7 contact category source from database.
Namespace
Drupal\contact\Plugin\migrate\sourceCode
public function query() {
$query = $this->select('contact', 'c')
->fields('c', [
'cid',
'category',
'recipients',
'reply',
'weight',
'selected',
]);
$query->orderBy('c.cid');
return $query;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.