user.services.yml

Same filename in other branches
  1. 9 core/modules/user/user.services.yml
  2. 10 core/modules/user/user.services.yml
  3. 11.x core/modules/user/user.services.yml
core/modules/user/user.services.yml

File

core/modules/user/user.services.yml

View source
  1. services:
  2. access_check.permission:
  3. class: Drupal\user\Access\PermissionAccessCheck
  4. tags:
  5. - { name: access_check, applies_to: _permission }
  6. access_check.user.register:
  7. class: Drupal\user\Access\RegisterAccessCheck
  8. tags:
  9. - { name: access_check, applies_to: _access_user_register }
  10. access_check.user.role:
  11. class: Drupal\user\Access\RoleAccessCheck
  12. tags:
  13. - { name: access_check, applies_to: _role }
  14. access_check.user.login_status:
  15. class: Drupal\user\Access\LoginStatusCheck
  16. tags:
  17. - { name: access_check, applies_to: _user_is_logged_in }
  18. user.authentication.cookie:
  19. class: Drupal\user\Authentication\Provider\Cookie
  20. arguments: ['@session_configuration', '@database']
  21. tags:
  22. - { name: authentication_provider, provider_id: 'cookie', priority: 0, global: TRUE }
  23. user.data:
  24. class: Drupal\user\UserData
  25. arguments: ['@database']
  26. tags:
  27. - { name: backend_overridable }
  28. user_maintenance_mode_subscriber:
  29. class: Drupal\user\EventSubscriber\MaintenanceModeSubscriber
  30. arguments: ['@maintenance_mode', '@current_user']
  31. tags:
  32. - { name: event_subscriber }
  33. user_access_denied_subscriber:
  34. class: Drupal\user\EventSubscriber\AccessDeniedSubscriber
  35. arguments: ['@current_user']
  36. tags:
  37. - { name: event_subscriber }
  38. user_last_access_subscriber:
  39. class: Drupal\user\EventSubscriber\UserRequestSubscriber
  40. arguments: ['@current_user', '@entity_type.manager']
  41. tags:
  42. - { name: event_subscriber }
  43. theme.negotiator.admin_theme:
  44. class: Drupal\user\Theme\AdminNegotiator
  45. arguments: ['@current_user', '@config.factory', '@entity_type.manager', '@router.admin_context']
  46. tags:
  47. - { name: theme_negotiator, priority: -40 }
  48. user.auth:
  49. class: Drupal\user\UserAuth
  50. arguments: ['@entity_type.manager', '@password']
  51. user.private_tempstore:
  52. class: Drupal\user\PrivateTempStoreFactory
  53. arguments: ['@keyvalue.expirable', '@lock', '@current_user', '@request_stack', '%tempstore.expire%']
  54. deprecated: The "%service_id%" service is deprecated. You should use the 'tempstore.private' service instead. See https://www.drupal.org/node/2935639.
  55. tags:
  56. - { name: backend_overridable }
  57. user.shared_tempstore:
  58. class: Drupal\user\SharedTempStoreFactory
  59. arguments: ['@keyvalue.expirable', '@lock', '@request_stack', '%tempstore.expire%']
  60. deprecated: The "%service_id%" service is deprecated. You should use the 'tempstore.shared' service instead. See https://www.drupal.org/node/2935639.
  61. tags:
  62. - { name: backend_overridable }
  63. user.permissions:
  64. class: Drupal\user\PermissionHandler
  65. arguments: ['@module_handler', '@string_translation', '@controller_resolver']
  66. user.current_user_context:
  67. class: Drupal\user\ContextProvider\CurrentUserContext
  68. arguments: ['@current_user', '@entity_type.manager']
  69. tags:
  70. - { name: 'context_provider' }
  71. user.toolbar_link_builder:
  72. class: Drupal\user\ToolbarLinkBuilder
  73. arguments: ['@current_user']

Services

Title Deprecated Summary
access_check.permission Drupal\user\Access\PermissionAccessCheck
access_check.user.login_status Drupal\user\Access\LoginStatusCheck
access_check.user.register Drupal\user\Access\RegisterAccessCheck
access_check.user.role Drupal\user\Access\RoleAccessCheck
theme.negotiator.admin_theme Drupal\user\Theme\AdminNegotiator
user.auth Drupal\user\UserAuth
user.authentication.cookie Drupal\user\Authentication\Provider\Cookie
user.current_user_context Drupal\user\ContextProvider\CurrentUserContext
user.data Drupal\user\UserData
user.permissions Drupal\user\PermissionHandler
user.private_tempstore Drupal\user\PrivateTempStoreFactory
user.shared_tempstore Drupal\user\SharedTempStoreFactory
user.toolbar_link_builder Drupal\user\ToolbarLinkBuilder
user_access_denied_subscriber Drupal\user\EventSubscriber\AccessDeniedSubscriber
user_last_access_subscriber Drupal\user\EventSubscriber\UserRequestSubscriber
user_maintenance_mode_subscriber Drupal\user\EventSubscriber\MaintenanceModeSubscriber

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