t('Unknown'); } /** * Determine if the current user has access or not. * * @param \Drupal\Core\Session\AccountInterface $account * The user who wants to access this view. * * @return bool * Returns whether the user has access to the view. */ abstract public function access(AccountInterface $account); /** * Allows access plugins to alter the route definition of a view. * * Likely the access plugin will add new requirements, so its custom access * checker can be applied. * * @param \Symfony\Component\Routing\Route $route * The route to change. */ abstract public function alterRouteDefinition(Route $route); } /** * @} */