public function LanguageFilter::query in Custom Language field 8
Add this filter to the query.
Due to the nature of fapi, the value and the operator have an unintended level of indirection. You will find them in $this->operator and $this->value respectively.
Overrides LanguageFilter::query
File
- src/
Plugin/ views/ filter/ LanguageFilter.php, line 40
Class
- LanguageFilter
- Provides filtering by language.
Namespace
Drupal\languagefield\Plugin\views\filterCode
public function query() {
// Don't filter by language in case the site is not multilingual, because
// there is no point in doing so.
if (!$this->languageManager
->isMultilingual()) {
return;
}
parent::query();
}