public AccessManager::checkNamedRoute($route_name, array $parameters = array(), AccountInterface $account = NULL, $return_as_object = FALSE)
Checks a named route with parameters against applicable access check services.
Determines whether the route is accessible or not.
Parameters
string $route_name: The route to check access to.
array $parameters: Optional array of values to substitute into the route path pattern.
\Drupal\Core\Session\AccountInterface $account: (optional) Run access checks fo