You are here

protected function Url::accessManager in Drupal 10

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

Return value

\Drupal\Core\Access\AccessManagerInterface

1 call to Url::accessManager()
Url::access in core/lib/Drupal/Core/Url.php
Checks this Url object against applicable access check services.

File

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

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