You are here

layout_builder.services.yml in Drupal 10

core/modules/layout_builder/layout_builder.services.yml

File

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