You are here

node.services.yml in Drupal 9

core/modules/node/node.services.yml

File

core/modules/node/node.services.yml
View source
  1. services:
  2. node.route_subscriber:
  3. class: Drupal\node\Routing\RouteSubscriber
  4. tags:
  5. - { name: event_subscriber }
  6. node.grant_storage:
  7. class: Drupal\node\NodeGrantDatabaseStorage
  8. arguments: ['@database', '@module_handler', '@language_manager']
  9. tags:
  10. - { name: backend_overridable }
  11. access_check.node.revision:
  12. class: Drupal\node\Access\NodeRevisionAccessCheck
  13. arguments: ['@entity_type.manager']
  14. tags:
  15. - { name: access_check, applies_to: _access_node_revision }
  16. access_check.node.add:
  17. class: Drupal\node\Access\NodeAddAccessCheck
  18. arguments: ['@entity_type.manager']
  19. tags:
  20. - { name: access_check, applies_to: _node_add_access }
  21. access_check.node.preview:
  22. class: Drupal\node\Access\NodePreviewAccessCheck
  23. arguments: ['@entity_type.manager']
  24. tags:
  25. - { name: access_check, applies_to: _node_preview_access }
  26. node.admin_path.route_subscriber:
  27. class: Drupal\node\EventSubscriber\NodeAdminRouteSubscriber
  28. arguments: ['@config.factory', '@router.builder']
  29. tags:
  30. - { name: event_subscriber }
  31. node_preview:
  32. class: Drupal\node\ParamConverter\NodePreviewConverter
  33. arguments: ['@tempstore.private']
  34. tags:
  35. - { name: paramconverter }
  36. lazy: true
  37. node.page_cache_response_policy.deny_node_preview:
  38. class: Drupal\node\PageCache\DenyNodePreview
  39. arguments: ['@current_route_match']
  40. public: false
  41. tags:
  42. - { name: page_cache_response_policy }
  43. - { name: dynamic_page_cache_response_policy }
  44. cache_context.user.node_grants:
  45. class: Drupal\node\Cache\NodeAccessGrantsCacheContext
  46. arguments: ['@current_user']
  47. tags:
  48. - { name: cache.context }
  49. node.node_route_context:
  50. class: Drupal\node\ContextProvider\NodeRouteContext
  51. arguments: ['@current_route_match']
  52. tags:
  53. - { name: 'context_provider' }