You are here

protected function Url::accessManager in Drupal 9

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

Return value

\Drupal\Core\Access\AccessManagerInterface

File

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

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;
}