user.permissions

Same name in other branches
  1. 9 core/modules/user/user.services.yml \user.permissions
  2. 8.9.x core/modules/user/user.services.yml \user.permissions
  3. 11.x core/modules/user/user.services.yml \user.permissions

Class

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

View source
  1. class: Drupal\user\PermissionHandler
  2. arguments:
  3. - '@module_handler'
  4. - '@string_translation'
  5. - '@callable_resolver'
  6. - '@extension.list.module'

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.