function TestUrl::setAccessManager

Same name in other branches
  1. 8.9.x core/tests/Drupal/Tests/Core/UrlTest.php \Drupal\Tests\Core\TestUrl::setAccessManager()
  2. 10 core/tests/Drupal/Tests/Core/UrlTest.php \Drupal\Tests\Core\TestUrl::setAccessManager()
  3. 11.x 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 872

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.