layout_builder.services.yml

Same filename and directory in other branches
  1. 9 core/modules/layout_builder/layout_builder.services.yml
  2. 8.9.x core/modules/layout_builder/layout_builder.services.yml
  3. 11.x core/modules/layout_builder/layout_builder.services.yml
core/modules/layout_builder/layout_builder.services.yml

File

core/modules/layout_builder/layout_builder.services.yml

View source
  1. services:
  2. _defaults:
  3. autoconfigure: true
  4. layout_builder.tempstore_repository:
  5. class: Drupal\layout_builder\LayoutTempstoreRepository
  6. arguments: ['@tempstore.shared']
  7. Drupal\layout_builder\LayoutTempstoreRepositoryInterface: '@layout_builder.tempstore_repository'
  8. access_check.entity.layout_builder_access:
  9. class: Drupal\layout_builder\Access\LayoutBuilderAccessCheck
  10. tags:
  11. - { name: access_check, applies_to: _layout_builder_access }
  12. plugin.manager.layout_builder.section_storage:
  13. class: Drupal\layout_builder\SectionStorage\SectionStorageManager
  14. parent: default_plugin_manager
  15. arguments: ['@context.handler']
  16. Drupal\layout_builder\SectionStorage\SectionStorageManagerInterface: '@plugin.manager.layout_builder.section_storage'
  17. layout_builder.routes:
  18. class: Drupal\layout_builder\Routing\LayoutBuilderRoutes
  19. arguments: ['@plugin.manager.layout_builder.section_storage']
  20. layout_builder.tempstore.route_enhancer:
  21. class: Drupal\layout_builder\Routing\LayoutTempstoreRouteEnhancer
  22. arguments: ['@layout_builder.tempstore_repository']
  23. tags:
  24. - { name: route_enhancer }
  25. layout_builder.param_converter:
  26. class: Drupal\layout_builder\Routing\LayoutSectionStorageParamConverter
  27. arguments: ['@plugin.manager.layout_builder.section_storage']
  28. tags:
  29. - { name: paramconverter, priority: 10 }
  30. cache_context.layout_builder_is_active:
  31. class: Drupal\layout_builder\Cache\LayoutBuilderIsActiveCacheContext
  32. arguments: ['@current_route_match']
  33. tags:
  34. - { name: cache.context}
  35. cache_context.route.name.is_layout_builder_ui:
  36. class: Drupal\layout_builder\Cache\LayoutBuilderUiCacheContext
  37. arguments: ['@current_route_match']
  38. tags:
  39. - { name: cache.context }
  40. layout_builder.extra_fields.invalidator:
  41. class: Drupal\layout_builder\Cache\ExtraFieldBlockCacheTagInvalidator
  42. arguments: ['@plugin.manager.block']
  43. public: false
  44. tags:
  45. - { name: cache_tags_invalidator }
  46. layout_builder.sample_entity_generator:
  47. class: Drupal\layout_builder\Entity\LayoutBuilderSampleEntityGenerator
  48. arguments: ['@tempstore.shared', '@entity_type.manager']
  49. Drupal\layout_builder\Entity\SampleEntityGeneratorInterface: '@layout_builder.sample_entity_generator'
  50. layout_builder.render_block_component_subscriber:
  51. class: Drupal\layout_builder\EventSubscriber\BlockComponentRenderArray
  52. arguments: ['@current_user']
  53. logger.channel.layout_builder:
  54. parent: logger.channel_base
  55. arguments: ['layout_builder']
  56. inline_block.usage:
  57. class: Drupal\layout_builder\InlineBlockUsage
  58. arguments: ['@database']
  59. Drupal\layout_builder\InlineBlockUsageInterface: '@inline_block.usage'
  60. layout_builder.controller.entity_form:
  61. # Override the entity form controller to handle the entity layout_builder
  62. # operation.
  63. decorates: controller.entity_form
  64. class: Drupal\layout_builder\Controller\LayoutBuilderHtmlEntityFormController
  65. public: false
  66. arguments: ['@layout_builder.controller.entity_form.inner']
  67. Drupal\layout_builder\Controller\LayoutBuilderHtmlEntityFormController: '@layout_builder.controller.entity_form'
  68. layout_builder.element.prepare_layout:
  69. class: Drupal\layout_builder\EventSubscriber\PrepareLayout
  70. 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.