function TestUrl::setAccessManager

Same name and namespace in other branches
  1. 9 core/tests/Drupal/Tests/Core/UrlTest.php \Drupal\Tests\Core\TestUrl::setAccessManager()
  2. 8.9.x core/tests/Drupal/Tests/Core/UrlTest.php \Drupal\Tests\Core\TestUrl::setAccessManager()
  3. 10 core/tests/Drupal/Tests/Core/UrlTest.php \Drupal\Tests\Core\TestUrl::setAccessManager()

Sets the access manager.

Parameters

\Drupal\Core\Access\AccessManagerInterface $access_manager: The access manager.

File

core/tests/Drupal/Tests/Core/UrlTest.php, line 832

Class

TestUrl

Namespace

Drupal\Tests\Core

Code

public function setAccessManager(AccessManagerInterface $access_manager) {
    $this->accessManager = $access_manager;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.