You are here

protected function Url::accessManager in Drupal 8

Same name and namespace in other branches
  1. 9 core/lib/Drupal/Core/Url.php \Drupal\Core\Url::accessManager()

Return value

\Drupal\Core\Access\AccessManagerInterface

File

core/lib/Drupal/Core/Url.php, line 839

Class

Url
Defines an object that holds information about a URL.

Namespace

Drupal\Core

Code

protected function accessManager() {
  if (!isset($this->accessManager)) {
    $this->accessManager = \Drupal::service('access_manager');
  }
  return $this->accessManager;
}