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