You are here

content_moderation.services.yml in Drupal 10

core/modules/content_moderation/content_moderation.services.yml

File

core/modules/content_moderation/content_moderation.services.yml
View source
  1. services:
  2. content_moderation.state_transition_validation:
  3. class: Drupal\content_moderation\StateTransitionValidation
  4. arguments: ['@content_moderation.moderation_information']
  5. content_moderation.moderation_information:
  6. class: Drupal\content_moderation\ModerationInformation
  7. arguments: ['@entity_type.manager', '@entity_type.bundle.info']
  8. access_check.latest_revision:
  9. class: Drupal\content_moderation\Access\LatestRevisionCheck
  10. arguments: ['@content_moderation.moderation_information']
  11. tags:
  12. - { name: access_check, applies_to: _content_moderation_latest_version }
  13. content_moderation.config_import_subscriber:
  14. class: Drupal\content_moderation\EventSubscriber\ConfigImportSubscriber
  15. arguments: ['@config.manager', '@entity_type.manager']
  16. tags:
  17. - { name: event_subscriber }
  18. content_moderation.route_subscriber:
  19. class: Drupal\content_moderation\Routing\ContentModerationRouteSubscriber
  20. arguments: ['@entity_type.manager']
  21. tags:
  22. - { name: event_subscriber }