node.services.yml 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  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.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.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.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']
  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. cache_context.user.node_grants:
  44. class: Drupal\node\Cache\NodeAccessGrantsCacheContext
  45. arguments: ['@current_user']
  46. tags:
  47. - { name: cache.context }
  48. node.node_route_context:
  49. class: Drupal\node\ContextProvider\NodeRouteContext
  50. arguments: ['@current_route_match']
  51. tags:
  52. - { name: 'context_provider' }