function LanguageFilter::query
Same name in other branches
- 9 core/modules/views/src/Plugin/views/filter/LanguageFilter.php \Drupal\views\Plugin\views\filter\LanguageFilter::query()
- 8.9.x core/modules/views/src/Plugin/views/filter/LanguageFilter.php \Drupal\views\Plugin\views\filter\LanguageFilter::query()
- 10 core/modules/views/src/Plugin/views/filter/LanguageFilter.php \Drupal\views\Plugin\views\filter\LanguageFilter::query()
Overrides InOperator::query
File
-
core/
modules/ views/ src/ Plugin/ views/ filter/ LanguageFilter.php, line 74
Class
- LanguageFilter
- Provides filtering by language.
Namespace
Drupal\views\Plugin\views\filterCode
public function query() {
// No point in displaying the language filter on monolingual sites,
// as only one language value is available.
if (!$this->languageManager
->isMultilingual()) {
return;
}
parent::query();
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.