node.services.yml 1.55 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
  node.page_cache_response_policy.deny_node_preview:
37
38
39
40
    class: Drupal\node\PageCache\DenyNodePreview
    arguments: ['@current_route_match']
    tags:
      - { name: page_cache_response_policy }
41
42
43
44
45
  cache_context.node_view_grants:
    class: Drupal\node\Cache\NodeAccessViewGrantsCacheContext
    arguments: ['@current_user']
    tags:
      - { name: cache.context }