user.permissions
Same name in other branches
- 8.9.x core/modules/user/user.services.yml \user.permissions
- 10 core/modules/user/user.services.yml \user.permissions
- 11.x core/modules/user/user.services.yml \user.permissions
Class
Drupal\user\PermissionHandler130 string references to user.permissions
- AccessResult::allowedIfHasPermission in core/
lib/ Drupal/ Core/ Access/ AccessResult.php - Creates an allowed access result if the permission is present, neutral otherwise.
- AccessResult::allowedIfHasPermissions in core/
lib/ Drupal/ Core/ Access/ AccessResult.php - Creates an allowed access result if the permissions are present, neutral otherwise.
- AccessResult::cachePerPermissions in core/
lib/ Drupal/ Core/ Access/ AccessResult.php - Convenience method, adds the "user.permissions" cache context.
- AccessResultTest::testCacheContexts in core/
tests/ Drupal/ Tests/ Core/ Access/ AccessResultTest.php - @covers ::addCacheContexts @covers ::resetCacheContexts @covers ::getCacheContexts @covers ::cachePerPermissions @covers ::cachePerUser @covers ::allowedIfHasPermission
- AccessResultTest::testInheritCacheability in core/
tests/ Drupal/ Tests/ Core/ Access/ AccessResultTest.php - @covers ::inheritCacheability
File
-
core/
modules/ user/ user.services.yml
View source
- class: Drupal\user\PermissionHandler
- arguments:
- - '@module_handler'
- - '@string_translation'
- - '@controller_resolver'
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.