You are here

protected function Link::checkUrlAccess in Views link area 8

Checks access to the link route.

Parameters

\Drupal\Core\Url $url: Standard Drupal URL object.

Return value

bool Whether the current user has access to the URL.

1 call to Link::checkUrlAccess()
Link::renderUrl in src/Plugin/views/area/Link.php
Takes an input \Drupal\Core\Url object and outputs it as needed.

File

src/Plugin/views/area/Link.php, line 471

Class

Link
Views area Link handler.

Namespace

Drupal\views_linkarea\Plugin\views\area

Code

protected function checkUrlAccess(Url $url) {
  if ($url
    ->isRouted() == FALSE) {
    return TRUE;
  }
  return $this->accessManager
    ->checkNamedRoute($url
    ->getRouteName(), $url
    ->getRouteParameters());
}