function Drupal::accessManager
Same name in other branches
- 9 core/lib/Drupal.php \Drupal::accessManager()
- 8.9.x core/lib/Drupal.php \Drupal::accessManager()
- 10 core/lib/Drupal.php \Drupal::accessManager()
Returns the access manager service.
Return value
\Drupal\Core\Access\AccessManagerInterface The access manager service.
1 call to Drupal::accessManager()
- DrupalTest::testAccessManager in core/
tests/ Drupal/ Tests/ Core/ DrupalTest.php - Tests the accessManager() method.
File
-
core/
lib/ Drupal.php, line 704
Class
- Drupal
- Static Service Container wrapper.
Code
public static function accessManager() {
return static::getContainer()->get('access_manager');
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.