layout_builder.services.yml
Same filename in other branches
File
-
core/
modules/ layout_builder/ layout_builder.services.yml
View source
- services:
- _defaults:
- autoconfigure: true
- layout_builder.tempstore_repository:
- class: Drupal\layout_builder\LayoutTempstoreRepository
- arguments: ['@tempstore.shared']
- Drupal\layout_builder\LayoutTempstoreRepositoryInterface: '@layout_builder.tempstore_repository'
- access_check.entity.layout_builder_access:
- class: Drupal\layout_builder\Access\LayoutBuilderAccessCheck
- tags:
- - { name: access_check, applies_to: _layout_builder_access }
- plugin.manager.layout_builder.section_storage:
- class: Drupal\layout_builder\SectionStorage\SectionStorageManager
- parent: default_plugin_manager
- arguments: ['@context.handler']
- Drupal\layout_builder\SectionStorage\SectionStorageManagerInterface: '@plugin.manager.layout_builder.section_storage'
- layout_builder.routes:
- class: Drupal\layout_builder\Routing\LayoutBuilderRoutes
- arguments: ['@plugin.manager.layout_builder.section_storage']
- layout_builder.tempstore.route_enhancer:
- class: Drupal\layout_builder\Routing\LayoutTempstoreRouteEnhancer
- arguments: ['@layout_builder.tempstore_repository']
- tags:
- - { name: route_enhancer }
- layout_builder.param_converter:
- class: Drupal\layout_builder\Routing\LayoutSectionStorageParamConverter
- arguments: ['@plugin.manager.layout_builder.section_storage']
- 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}
- cache_context.route.name.is_layout_builder_ui:
- class: Drupal\layout_builder\Cache\LayoutBuilderUiCacheContext
- arguments: ['@current_route_match']
- tags:
- - { name: cache.context }
- layout_builder.extra_fields.invalidator:
- class: Drupal\layout_builder\Cache\ExtraFieldBlockCacheTagInvalidator
- arguments: ['@plugin.manager.block']
- public: false
- tags:
- - { name: cache_tags_invalidator }
- layout_builder.sample_entity_generator:
- class: Drupal\layout_builder\Entity\LayoutBuilderSampleEntityGenerator
- arguments: ['@tempstore.shared', '@entity_type.manager']
- Drupal\layout_builder\Entity\SampleEntityGeneratorInterface: '@layout_builder.sample_entity_generator'
- layout_builder.render_block_component_subscriber:
- class: Drupal\layout_builder\EventSubscriber\BlockComponentRenderArray
- arguments: ['@current_user']
- logger.channel.layout_builder:
- parent: logger.channel_base
- arguments: ['layout_builder']
- inline_block.usage:
- class: Drupal\layout_builder\InlineBlockUsage
- arguments: ['@database']
- Drupal\layout_builder\InlineBlockUsageInterface: '@inline_block.usage'
- layout_builder.controller.entity_form:
- # Override the entity form controller to handle the entity layout_builder
- # operation.
- decorates: controller.entity_form
- class: Drupal\layout_builder\Controller\LayoutBuilderHtmlEntityFormController
- public: false
- arguments: ['@layout_builder.controller.entity_form.inner']
- Drupal\layout_builder\Controller\LayoutBuilderHtmlEntityFormController: '@layout_builder.controller.entity_form'
- layout_builder.element.prepare_layout:
- class: Drupal\layout_builder\EventSubscriber\PrepareLayout
- arguments: ['@layout_builder.tempstore_repository', '@messenger']
Services
Title | Deprecated | Summary |
---|---|---|
access_check.entity.layout_builder_access | Drupal\layout_builder\Access\LayoutBuilderAccessCheck | |
cache_context.layout_builder_is_active | Drupal\layout_builder\Cache\LayoutBuilderIsActiveCacheContext | |
cache_context.route.name.is_layout_builder_ui | Drupal\layout_builder\Cache\LayoutBuilderUiCacheContext | |
Drupal\layout_builder\Controller\LayoutBuilderHtmlEntityFormController | ||
Drupal\layout_builder\Entity\SampleEntityGeneratorInterface | ||
Drupal\layout_builder\InlineBlockUsageInterface | ||
Drupal\layout_builder\LayoutTempstoreRepositoryInterface | ||
Drupal\layout_builder\SectionStorage\SectionStorageManagerInterface | ||
inline_block.usage | Drupal\layout_builder\InlineBlockUsage | |
layout_builder.controller.entity_form | Drupal\layout_builder\Controller\LayoutBuilderHtmlEntityFormController | |
layout_builder.element.prepare_layout | Drupal\layout_builder\EventSubscriber\PrepareLayout | |
layout_builder.extra_fields.invalidator | Drupal\layout_builder\Cache\ExtraFieldBlockCacheTagInvalidator | |
layout_builder.param_converter | Drupal\layout_builder\Routing\LayoutSectionStorageParamConverter | |
layout_builder.render_block_component_subscriber | Drupal\layout_builder\EventSubscriber\BlockComponentRenderArray | |
layout_builder.routes | Drupal\layout_builder\Routing\LayoutBuilderRoutes | |
layout_builder.sample_entity_generator | Drupal\layout_builder\Entity\LayoutBuilderSampleEntityGenerator | |
layout_builder.tempstore.route_enhancer | Drupal\layout_builder\Routing\LayoutTempstoreRouteEnhancer | |
layout_builder.tempstore_repository | Drupal\layout_builder\LayoutTempstoreRepository | |
logger.channel.layout_builder | ||
plugin.manager.layout_builder.section_storage | Drupal\layout_builder\SectionStorage\SectionStorageManager | |
_defaults |
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.