function LanguageFilter::access

Same name in other branches
  1. 11.x core/modules/views/src/Plugin/views/filter/LanguageFilter.php \Drupal\views\Plugin\views\filter\LanguageFilter::access()

Overrides HandlerBase::access

File

core/modules/views/src/Plugin/views/filter/LanguageFilter.php, line 87

Class

LanguageFilter
Provides filtering by language.

Namespace

Drupal\views\Plugin\views\filter

Code

public function access(AccountInterface $account) : bool {
    return $this->languageManager
        ->isMultilingual() && parent::access($account);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.