workspaces.services.yml

Same filename in other branches
  1. 9 core/modules/workspaces/workspaces.services.yml
  2. 8.9.x core/modules/workspaces/workspaces.services.yml
  3. 10 core/modules/workspaces/workspaces.services.yml
core/modules/workspaces/workspaces.services.yml

File

core/modules/workspaces/workspaces.services.yml

View source
  1. services:
  2. _defaults:
  3. autoconfigure: true
  4. workspaces.manager:
  5. class: Drupal\workspaces\WorkspaceManager
  6. arguments: ['@request_stack', '@entity_type.manager', '@entity.memory_cache', '@current_user', '@state', '@logger.channel.workspaces', '@class_resolver', '@workspaces.association', '@workspaces.information']
  7. tags:
  8. - { name: service_id_collector, tag: workspace_negotiator }
  9. Drupal\workspaces\WorkspaceManagerInterface: '@workspaces.manager'
  10. workspaces.information:
  11. class: Drupal\workspaces\WorkspaceInformation
  12. arguments: [ '@entity_type.manager', '@workspaces.association' ]
  13. Drupal\workspaces\WorkspaceInformationInterface: '@workspaces.information'
  14. workspaces.operation_factory:
  15. class: Drupal\workspaces\WorkspaceOperationFactory
  16. arguments: ['@entity_type.manager', '@database', '@workspaces.manager', '@workspaces.association', '@event_dispatcher', '@logger.channel.workspaces']
  17. Drupal\workspaces\WorkspaceOperationFactory: '@workspaces.operation_factory'
  18. workspaces.association:
  19. class: Drupal\workspaces\WorkspaceAssociation
  20. arguments: ['@database', '@entity_type.manager', '@workspaces.repository', '@logger.channel.workspaces']
  21. tags:
  22. - { name: backend_overridable }
  23. Drupal\workspaces\WorkspaceAssociationInterface: '@workspaces.association'
  24. workspaces.repository:
  25. class: Drupal\workspaces\WorkspaceRepository
  26. arguments: ['@entity_type.manager', '@cache.default']
  27. Drupal\workspaces\WorkspaceRepositoryInterface: '@workspaces.repository'
  28. workspaces.negotiator.session:
  29. class: Drupal\workspaces\Negotiator\SessionWorkspaceNegotiator
  30. arguments: ['@current_user', '@session', '@entity_type.manager']
  31. tags:
  32. - { name: workspace_negotiator, priority: 50 }
  33. workspaces.negotiator.query_parameter:
  34. class: Drupal\workspaces\Negotiator\QueryParameterWorkspaceNegotiator
  35. parent: workspaces.negotiator.session
  36. tags:
  37. - { name: workspace_negotiator, priority: 100 }
  38. access_check.workspaces.active_workspace:
  39. class: Drupal\workspaces\Access\ActiveWorkspaceCheck
  40. arguments: ['@workspaces.manager']
  41. tags:
  42. - { name: access_check, applies_to: _has_active_workspace }
  43. workspaces.entity_schema_listener:
  44. class: Drupal\workspaces\EventSubscriber\EntitySchemaSubscriber
  45. arguments: ['@entity.definition_update_manager', '@entity.last_installed_schema.repository', '@workspaces.information']
  46. workspaces.workspace_subscriber:
  47. class: Drupal\workspaces\EventSubscriber\WorkspaceRequestSubscriber
  48. arguments: ['@router.route_provider', '@workspaces.manager']
  49. cache_context.workspace:
  50. class: Drupal\workspaces\WorkspaceCacheContext
  51. arguments: ['@workspaces.manager']
  52. tags:
  53. - { name: cache.context }
  54. logger.channel.workspaces:
  55. parent: logger.channel_base
  56. arguments: ['workspaces']
  57. workspaces.lazy_builders:
  58. class: Drupal\workspaces\WorkspacesLazyBuilders
  59. arguments: [ '@workspaces.manager', '@plugin.manager.element_info' ]
  60. Drupal\workspaces\WorkspacesLazyBuilders: '@workspaces.lazy_builders'
  61. workspaces.entity.query.sql:
  62. decorates: entity.query.sql
  63. class: Drupal\workspaces\EntityQuery\QueryFactory
  64. arguments: ['@database', '@workspaces.manager', '@workspaces.information']
  65. public: false
  66. decoration_priority: 50
  67. tags:
  68. - { name: backend_overridable }
  69. pgsql.workspaces.entity.query.sql:
  70. decorates: pgsql.entity.query.sql
  71. class: Drupal\workspaces\EntityQuery\PgsqlQueryFactory
  72. arguments: ['@database', '@workspaces.manager', '@workspaces.information']
  73. public: false
  74. decoration_priority: 50
  75. workspaces.menu.tree_storage:
  76. decorates: menu.tree_storage
  77. class: Drupal\workspaces\WorkspacesMenuTreeStorage
  78. arguments: ['@workspaces.manager', '@workspaces.association', '@entity_type.manager', '@database', '@cache.menu', '@cache_tags.invalidator', 'menu_tree']
  79. public: false
  80. decoration_priority: 50
  81. tags:
  82. - { name: backend_overridable }
  83. workspaces.controller.entity_form:
  84. # Decorate the entity form controller to handle entity operations inside a
  85. # workspace.
  86. decorates: controller.entity_form
  87. class: Drupal\workspaces\Controller\WorkspacesHtmlEntityFormController
  88. public: false
  89. arguments: ['@.inner', '@workspaces.manager', '@workspaces.information', '@typed_data_manager']
  90. Drupal\workspaces\Controller\WorkspacesHtmlEntityFormController: '@workspaces.controller.entity_form'

Services

Title Deprecated Summary
access_check.workspaces.active_workspace Drupal\workspaces\Access\ActiveWorkspaceCheck
cache_context.workspace Drupal\workspaces\WorkspaceCacheContext
Drupal\workspaces\Controller\WorkspacesHtmlEntityFormController
Drupal\workspaces\WorkspaceAssociationInterface
Drupal\workspaces\WorkspaceInformationInterface
Drupal\workspaces\WorkspaceManagerInterface
Drupal\workspaces\WorkspaceOperationFactory
Drupal\workspaces\WorkspaceRepositoryInterface
Drupal\workspaces\WorkspacesLazyBuilders
logger.channel.workspaces
pgsql.workspaces.entity.query.sql Drupal\workspaces\EntityQuery\PgsqlQueryFactory
workspaces.association Drupal\workspaces\WorkspaceAssociation
workspaces.controller.entity_form Drupal\workspaces\Controller\WorkspacesHtmlEntityFormController
workspaces.entity.query.sql Drupal\workspaces\EntityQuery\QueryFactory
workspaces.entity_schema_listener Drupal\workspaces\EventSubscriber\EntitySchemaSubscriber
workspaces.information Drupal\workspaces\WorkspaceInformation
workspaces.lazy_builders Drupal\workspaces\WorkspacesLazyBuilders
workspaces.manager Drupal\workspaces\WorkspaceManager
workspaces.menu.tree_storage Drupal\workspaces\WorkspacesMenuTreeStorage
workspaces.negotiator.query_parameter Drupal\workspaces\Negotiator\QueryParameterWorkspaceNegotiator
workspaces.negotiator.session Drupal\workspaces\Negotiator\SessionWorkspaceNegotiator
workspaces.operation_factory Drupal\workspaces\WorkspaceOperationFactory
workspaces.repository Drupal\workspaces\WorkspaceRepository
workspaces.workspace_subscriber Drupal\workspaces\EventSubscriber\WorkspaceRequestSubscriber
_defaults

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.