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