You are here

layout_builder.services.yml in Drupal 9

Same filename and directory in other branches
  1. 8 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. 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.param_converter:
  19. class: Drupal\layout_builder\Routing\LayoutTempstoreParamConverter
  20. arguments: ['@layout_builder.tempstore_repository', '@plugin.manager.layout_builder.section_storage']
  21. tags:
  22. - { name: paramconverter, priority: 10 }
  23. cache_context.layout_builder_is_active:
  24. class: Drupal\layout_builder\Cache\LayoutBuilderIsActiveCacheContext
  25. arguments: ['@current_route_match']
  26. tags:
  27. - { name: cache.context}
  28. cache_context.route.name.is_layout_builder_ui:
  29. class: Drupal\layout_builder\Cache\LayoutBuilderUiCacheContext
  30. arguments: ['@current_route_match']
  31. tags:
  32. - { name: cache.context }
  33. layout_builder.sample_entity_generator:
  34. class: Drupal\layout_builder\Entity\LayoutBuilderSampleEntityGenerator
  35. arguments: ['@tempstore.shared', '@entity_type.manager']
  36. layout_builder.render_block_component_subscriber:
  37. class: Drupal\layout_builder\EventSubscriber\BlockComponentRenderArray
  38. arguments: ['@current_user']
  39. tags:
  40. - { name: event_subscriber }
  41. logger.channel.layout_builder:
  42. parent: logger.channel_base
  43. arguments: ['layout_builder']
  44. inline_block.usage:
  45. class: Drupal\layout_builder\InlineBlockUsage
  46. arguments: ['@database']
  47. layout_builder.controller.entity_form:
  48. # Override the entity form controller to handle the entity layout_builder
  49. # operation.
  50. decorates: controller.entity_form
  51. class: Drupal\layout_builder\Controller\LayoutBuilderHtmlEntityFormController
  52. public: false
  53. arguments: ['@layout_builder.controller.entity_form.inner']
  54. layout_builder.element.prepare_layout:
  55. class: Drupal\layout_builder\EventSubscriber\PrepareLayout
  56. arguments: ['@layout_builder.tempstore_repository', '@messenger']
  57. tags:
  58. - { name: event_subscriber }