layout_builder.services.yml 1.33 KB
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
services:
  layout_builder.builder:
    class: Drupal\layout_builder\LayoutSectionBuilder
    arguments: ['@current_user', '@plugin.manager.core.layout', '@plugin.manager.block', '@context.handler', '@context.repository']
  layout_builder.tempstore_repository:
    class: Drupal\layout_builder\LayoutTempstoreRepository
    arguments: ['@user.shared_tempstore', '@entity_type.manager']
  access_check.entity.layout:
    class: Drupal\layout_builder\Access\LayoutSectionAccessCheck
    arguments: ['@entity_type.manager']
    tags:
      - { name: access_check, applies_to: _has_layout_section }
  layout_builder.routes:
    class: Drupal\layout_builder\Routing\LayoutBuilderRoutes
    arguments: ['@entity_type.manager', '@entity_field.manager']
  layout_builder.route_enhancer:
    class: Drupal\layout_builder\Routing\LayoutBuilderRouteEnhancer
    arguments: ['@entity_type.manager']
    tags:
      - { name: route_enhancer }
  layout_builder.param_converter:
    class: Drupal\layout_builder\Routing\LayoutTempstoreParamConverter
    arguments: ['@entity.manager', '@layout_builder.tempstore_repository']
    tags:
      - { name: paramconverter, priority: 10 }
  cache_context.layout_builder_is_active:
    class: Drupal\layout_builder\Cache\LayoutBuilderIsActiveCacheContext
    arguments: ['@current_route_match']
    tags:
      - { name: cache.context}