You are here

protected function LinkGeneratorBase::access in Simple XML sitemap 8

Checks if anonymous users have access to a given path.

Parameters

\Drupal\Core\Url object:

Return value

bool TRUE if anonymous users have access to path, FALSE if they do not.

2 calls to LinkGeneratorBase::access()
LinkGeneratorBase::get_multilang_urls_from_route in src/LinkGeneratorBase.php
Wrapper function for Drupal\Core\Url::fromRoute. Returns url data for every language.
LinkGeneratorBase::get_multilang_urls_from_user_input in src/LinkGeneratorBase.php
Wrapper function for Drupal\Core\Url::fromUserInput. Returns url data for every language.

File

src/LinkGeneratorBase.php, line 135
Contains \Drupal\simplesitemap\LinkGeneratorBase.

Class

LinkGeneratorBase

Namespace

Drupal\simplesitemap

Code

protected function access($url_object) {
  return $url_object
    ->access($this->anonymous_account);

  //todo: Add error checking.
}