You are here

public function Language::access in Redirect 8

Check whether given user has access to this handler.

Parameters

\Drupal\Core\Session\AccountInterface $account: The user account to check.

Return value

bool TRUE if the user has access to the handler, FALSE otherwise.

Overrides HandlerBase::access

File

modules/redirect_404/src/Plugin/views/field/Language.php, line 59

Class

Language
Provides a views field for the 404 error language.

Namespace

Drupal\redirect_404\Plugin\views\field

Code

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