service user.permissions in Drupal 10
Same name and namespace in other branches
- 8 core/modules/user/user.services.yml \user.permissions
- 9 core/modules/user/user.services.yml \user.permissions
Class
Drupal\user\PermissionHandler156 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 - core/modules/user/user.services.yml
View source
- class: Drupal\user\PermissionHandler
- arguments:
- - '@module_handler'
- - '@string_translation'
- - '@controller_resolver'