You are here

lingotek.services.yml in Lingotek Translation 3.7.x

File

lingotek.services.yml
View source
  1. services:
  2. lingotek:
  3. class: Drupal\lingotek\Lingotek
  4. arguments: ['@lingotek.api', '@lingotek.language_locale_mapper', '@config.factory', '@lingotek.filter_manager', '@lingotek.configuration']
  5. lingotek.http_client:
  6. class: Drupal\lingotek\Remote\LingotekHttp
  7. arguments: ['@http_client', '@config.factory']
  8. lingotek.api:
  9. class: Drupal\lingotek\Remote\LingotekApi
  10. arguments: ['@lingotek.http_client', '@logger.channel.lingotek']
  11. lingotek.language_locale_mapper:
  12. class: Drupal\lingotek\LanguageLocaleMapper
  13. arguments: ['@entity_type.manager', '@entity_type.manager']
  14. lingotek.language_form:
  15. class: Drupal\lingotek\Form\LingotekLanguageForm
  16. arguments: ['@lingotek', '@lingotek.language_locale_mapper', '@lingotek.configuration']
  17. lingotek.language_content_settings_form:
  18. class: Drupal\lingotek\Form\LingotekLanguageContentSettingsForm
  19. arguments: ['@entity_type.bundle.info']
  20. lingotek.field_config_edit_form:
  21. class: Drupal\lingotek\Form\LingotekFieldConfigEditForm
  22. arguments: ['@lingotek.configuration']
  23. lingotek.paragraphs_bulk_form:
  24. class: Drupal\lingotek\Form\LingotekParagraphsBulkForm
  25. arguments: ['@lingotek.configuration']
  26. lingotek.media_bulk_form:
  27. class: Drupal\lingotek\Form\LingotekMediaBulkForm
  28. arguments: ['@lingotek.configuration']
  29. lingotek.element_info_alter:
  30. class: Drupal\lingotek\Form\LingotekElementInfoAlterForm
  31. arguments: ['@current_user', '@entity_type.manager', '@router.builder', '@lingotek.configuration']
  32. lingotek.configuration:
  33. class: Drupal\lingotek\LingotekConfigurationService
  34. lingotek.intelligence_config:
  35. class: Drupal\lingotek\LingotekIntelligenceServiceConfig
  36. arguments: ['@config.factory']
  37. lingotek.intelligence:
  38. class: Drupal\lingotek\LingotekIntelligenceService
  39. arguments: ['@lingotek.intelligence_config']
  40. lingotek.filter_manager:
  41. class: Drupal\lingotek\LingotekFilterManager
  42. arguments: ['@config.factory']
  43. lingotek.moderation_factory:
  44. class: Drupal\lingotek\Moderation\LingotekModerationFactory
  45. arguments: ['@config.factory']
  46. tags:
  47. - { name: service_collector, tag: lingotek_moderation_configuration, call: addModerationConfiguration }
  48. - { name: service_collector, tag: lingotek_moderation_form, call: addModerationForm }
  49. - { name: service_collector, tag: lingotek_moderation_handler, call: addModerationHandler }
  50. lingotek.content_translation:
  51. class: Drupal\lingotek\LingotekContentTranslationService
  52. arguments: ['@lingotek', '@lingotek.language_locale_mapper', '@lingotek.configuration', '@lingotek.config_translation', '@entity_type.manager', '@language_manager', '@entity_field.manager', '@database']
  53. lingotek.config_translation:
  54. class: Drupal\lingotek\LingotekConfigTranslationService
  55. arguments: ['@lingotek', '@lingotek.language_locale_mapper', '@lingotek.configuration', '@entity_type.manager', '@language_manager', '@plugin.manager.config_translation.mapper']
  56. lingotek.interface_translation:
  57. class: Drupal\lingotek\LingotekInterfaceTranslationService
  58. arguments: ['@lingotek', '@lingotek.language_locale_mapper', '@lingotek.configuration', '@language_manager', '@database', '@module_handler', '@theme_handler']
  59. lingotek.profile_usage:
  60. class: Drupal\lingotek\LingotekProfileUsage
  61. arguments: ['@lingotek.configuration', '@entity_type.manager', '@plugin.manager.config_translation.mapper', '@entity_type.bundle.info']
  62. lingotek.content_translation_subscriber:
  63. class: Drupal\lingotek\Routing\LingotekRouteSubscriber
  64. arguments: ['@entity_type.manager']
  65. tags:
  66. - { name: event_subscriber }
  67. logger.channel.lingotek:
  68. parent: logger.channel_base
  69. arguments: ['lingotek']
  70. lingotek.config_subscriber:
  71. class: Drupal\lingotek\EventSubscriber\LingotekConfigSubscriber
  72. arguments: ['@lingotek.config_translation', '@plugin.manager.config_translation.mapper', '@lingotek.configuration', '@entity_type.manager', '@entity_field.manager']
  73. tags:
  74. - { name: event_subscriber }
  75. lingotek.field_deleted_subscriber:
  76. class: Drupal\lingotek\EventSubscriber\LingotekFieldDeletedConfigSubscriber
  77. arguments: ['@lingotek.configuration']
  78. tags:
  79. - { name: event_subscriber }
  80. lingotek.actions_creation_subscriber:
  81. class: \Drupal\lingotek\Plugin\Action\Subscriber\LingotekActionsManagementSubscriber
  82. arguments: ['@entity_type.manager', '@plugin.manager.action', '@lingotek.configuration']
  83. tags:
  84. - { name: event_subscriber }
  85. plugin.manager.related_entities_detector:
  86. class: Drupal\lingotek\RelatedEntities\RelatedEntitiesDetectorManager
  87. parent: default_plugin_manager
  88. lingotek.no_moderation_configuration:
  89. class: Drupal\lingotek\Moderation\LingotekNoModerationConfigurationService
  90. arguments: ['@module_handler']
  91. tags:
  92. - { name: lingotek_moderation_configuration, priority: 0 }
  93. lingotek.no_moderation_form:
  94. class: Drupal\lingotek\Moderation\LingotekNoModerationSettingsForm
  95. arguments: ['@module_handler']
  96. tags:
  97. - { name: lingotek_moderation_form, priority: 0 }
  98. lingotek.no_moderation_handler:
  99. class: Drupal\lingotek\Moderation\LingotekNoModerationHandler
  100. arguments: ['@module_handler']
  101. tags:
  102. - { name: lingotek_moderation_handler, priority: 0 }
  103. lingotek.workbench_moderation_configuration:
  104. class: Drupal\lingotek\Moderation\LingotekWorkbenchModerationConfigurationService
  105. arguments: ['@module_handler', '@config.factory']
  106. tags:
  107. - { name: lingotek_moderation_configuration, priority: 10 }
  108. lingotek.workbench_moderation_form:
  109. class: Drupal\lingotek\Moderation\LingotekWorkbenchModerationSettingsForm
  110. arguments: ['@module_handler', '@entity_type.manager', '@lingotek.workbench_moderation_configuration', '@service_container', '@url_generator']
  111. tags:
  112. - { name: lingotek_moderation_form, priority: 10 }
  113. lingotek.workbench_moderation_handler:
  114. class: Drupal\lingotek\Moderation\LingotekWorkbenchModerationHandler
  115. arguments: ['@module_handler', '@entity_type.manager', '@lingotek.workbench_moderation_configuration', '@service_container']
  116. tags:
  117. - { name: lingotek_moderation_handler, priority: 10 }
  118. lingotek.content_moderation_configuration:
  119. class: Drupal\lingotek\Moderation\LingotekContentModerationConfigurationService
  120. arguments: ['@module_handler', '@config.factory']
  121. tags:
  122. - { name: lingotek_moderation_configuration, priority: 20 }
  123. lingotek.content_moderation_form:
  124. class: Drupal\lingotek\Moderation\LingotekContentModerationSettingsForm
  125. arguments: ['@module_handler', '@entity_type.manager', '@lingotek.content_moderation_configuration', '@entity_type.bundle.info', '@service_container', '@url_generator']
  126. tags:
  127. - { name: lingotek_moderation_form, priority: 20 }
  128. lingotek.content_moderation_handler:
  129. class: Drupal\lingotek\Moderation\LingotekContentModerationHandler
  130. arguments: ['@module_handler', '@entity_type.manager', '@lingotek.content_moderation_configuration', '@entity_type.bundle.info', '@service_container']
  131. tags:
  132. - { name: lingotek_moderation_handler, priority: 20 }
  133. lingotek.translation_job_breadcrumb_builder:
  134. class: Drupal\lingotek\Breadcrumb\TranslationJobBreadcrumbBuilder
  135. arguments: ['@request_stack', '@current_user', '@title_resolver', '@access_manager']
  136. tags:
  137. - { name: breadcrumb_builder, priority: 100 }
  138. lingotek.depcalc_exclude_content_metadata_subscriber:
  139. class: Drupal\lingotek\EventSubscriber\DepCalcExcludeLingotekContentMetadataSubscriber
  140. tags:
  141. - { name: event_subscriber }
  142. lingotek.acquia_contenthub_exclude_content_metadata_subscriber:
  143. class: Drupal\lingotek\EventSubscriber\AcquiaContentHubExcludeLingotekContentMetadataFromSerializationSubscriber
  144. tags:
  145. - { name: event_subscriber }
  146. lingotek.cli_service:
  147. class: Drupal\lingotek\Cli\LingotekCliService
  148. arguments: ['@entity_type.manager', '@lingotek.content_translation', '@lingotek.language_locale_mapper']

Services

Namesort descending Description
lingotek Drupal\lingotek\Lingotek
lingotek.acquia_contenthub_exclude_content_metadata_subscriber Drupal\lingotek\EventSubscriber\AcquiaContentHubExcludeLingotekContentMetadataFromSerializationSubscriber
lingotek.actions_creation_subscriber \Drupal\lingotek\Plugin\Action\Subscriber\LingotekActionsManagementSubscriber
lingotek.api Drupal\lingotek\Remote\LingotekApi
lingotek.cli_service Drupal\lingotek\Cli\LingotekCliService
lingotek.configuration Drupal\lingotek\LingotekConfigurationService
lingotek.config_subscriber Drupal\lingotek\EventSubscriber\LingotekConfigSubscriber
lingotek.config_translation Drupal\lingotek\LingotekConfigTranslationService
lingotek.content_moderation_configuration Drupal\lingotek\Moderation\LingotekContentModerationConfigurationService
lingotek.content_moderation_form Drupal\lingotek\Moderation\LingotekContentModerationSettingsForm
lingotek.content_moderation_handler Drupal\lingotek\Moderation\LingotekContentModerationHandler
lingotek.content_translation Drupal\lingotek\LingotekContentTranslationService
lingotek.content_translation_subscriber Drupal\lingotek\Routing\LingotekRouteSubscriber
lingotek.depcalc_exclude_content_metadata_subscriber Drupal\lingotek\EventSubscriber\DepCalcExcludeLingotekContentMetadataSubscriber
lingotek.element_info_alter Drupal\lingotek\Form\LingotekElementInfoAlterForm
lingotek.field_config_edit_form Drupal\lingotek\Form\LingotekFieldConfigEditForm
lingotek.field_deleted_subscriber Drupal\lingotek\EventSubscriber\LingotekFieldDeletedConfigSubscriber
lingotek.filter_manager Drupal\lingotek\LingotekFilterManager
lingotek.http_client Drupal\lingotek\Remote\LingotekHttp
lingotek.intelligence Drupal\lingotek\LingotekIntelligenceService
lingotek.intelligence_config Drupal\lingotek\LingotekIntelligenceServiceConfig
lingotek.interface_translation Drupal\lingotek\LingotekInterfaceTranslationService
lingotek.language_content_settings_form Drupal\lingotek\Form\LingotekLanguageContentSettingsForm
lingotek.language_form Drupal\lingotek\Form\LingotekLanguageForm
lingotek.language_locale_mapper Drupal\lingotek\LanguageLocaleMapper
lingotek.media_bulk_form Drupal\lingotek\Form\LingotekMediaBulkForm
lingotek.moderation_factory Drupal\lingotek\Moderation\LingotekModerationFactory
lingotek.no_moderation_configuration Drupal\lingotek\Moderation\LingotekNoModerationConfigurationService
lingotek.no_moderation_form Drupal\lingotek\Moderation\LingotekNoModerationSettingsForm
lingotek.no_moderation_handler Drupal\lingotek\Moderation\LingotekNoModerationHandler
lingotek.paragraphs_bulk_form Drupal\lingotek\Form\LingotekParagraphsBulkForm
lingotek.profile_usage Drupal\lingotek\LingotekProfileUsage
lingotek.translation_job_breadcrumb_builder Drupal\lingotek\Breadcrumb\TranslationJobBreadcrumbBuilder
lingotek.workbench_moderation_configuration Drupal\lingotek\Moderation\LingotekWorkbenchModerationConfigurationService
lingotek.workbench_moderation_form Drupal\lingotek\Moderation\LingotekWorkbenchModerationSettingsForm
lingotek.workbench_moderation_handler Drupal\lingotek\Moderation\LingotekWorkbenchModerationHandler
logger.channel.lingotek
plugin.manager.related_entities_detector Drupal\lingotek\RelatedEntities\RelatedEntitiesDetectorManager