You are here

service user.permissions in Drupal 8

Same name and namespace in other branches
  1. 9 core/modules/user/user.services.yml \user.permissions
  2. 10 core/modules/user/user.services.yml \user.permissions

Class

Drupal\user\PermissionHandler
137 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

... See full list

File

core/modules/user/user.services.yml
core/modules/user/user.services.yml

View source
  1. class: Drupal\user\PermissionHandler
  2. arguments:
  3. - '@module_handler'
  4. - '@string_translation'
  5. - '@controller_resolver'