function TestUrl::setAccessManager

Same name in other branches
  1. 9 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:

File

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

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.