content_translation.services.yml 1.27 KB
Newer Older
1 2 3
services:
  content_translation.synchronizer:
    class: Drupal\content_translation\FieldTranslationSynchronizer
4
    arguments: ['@entity.manager', '@plugin.manager.field.field_type']
5 6 7

  content_translation.subscriber:
    class: Drupal\content_translation\Routing\ContentTranslationRouteSubscriber
8
    arguments: ['@content_translation.manager']
9 10 11 12 13
    tags:
      - { name: event_subscriber }

  content_translation.overview_access:
    class: Drupal\content_translation\Access\ContentTranslationOverviewAccess
14
    arguments: ['@entity.manager']
15
    tags:
16
      - { name: access_check, applies_to: _access_content_translation_overview }
17 18 19

  content_translation.manage_access:
    class: Drupal\content_translation\Access\ContentTranslationManageAccessCheck
20
    arguments: ['@entity.manager', '@language_manager']
21
    tags:
22
      - { name: access_check, applies_to: _access_content_translation_manage }
23 24 25

  content_translation.manager:
    class: Drupal\content_translation\ContentTranslationManager
26
    arguments: ['@entity.manager', '@content_translation.updates_manager']
27 28 29 30 31 32

  content_translation.updates_manager:
    class: Drupal\content_translation\ContentTranslationUpdatesManager
    arguments: ['@entity.manager', '@entity.definition_update_manager']
    tags:
      - { name: event_subscriber }