public Url::access(AccountInterface $account = NULL)
Checks this Url object against applicable access check services.
Determines whether the route is accessible or not.
Parameters
\Drupal\Core\Session\AccountInterface $account: (optional) Run access checks for this account. Defaults to the current user.
Return value
bool Returns TRUE if the user has access to the url, otherwise FALSE.
File
core/lib/Drupal/Core/Url.php, line 789
Class
Url Defines an object that holds information about a U