content_moderation.services.yml 1.2 KB

123456789101112131415161718192021222324252627
  1. services:
  2. paramconverter.latest_revision:
  3. class: Drupal\content_moderation\ParamConverter\EntityRevisionConverter
  4. parent: paramconverter.entity
  5. tags:
  6. - { name: paramconverter, priority: 5 }
  7. content_moderation.state_transition_validation:
  8. class: \Drupal\content_moderation\StateTransitionValidation
  9. arguments: ['@content_moderation.moderation_information']
  10. content_moderation.moderation_information:
  11. class: Drupal\content_moderation\ModerationInformation
  12. arguments: ['@entity_type.manager', '@entity_type.bundle.info']
  13. access_check.latest_revision:
  14. class: Drupal\content_moderation\Access\LatestRevisionCheck
  15. arguments: ['@content_moderation.moderation_information']
  16. tags:
  17. - { name: access_check, applies_to: _content_moderation_latest_version }
  18. content_moderation.config_import_subscriber:
  19. class: Drupal\content_moderation\EventSubscriber\ConfigImportSubscriber
  20. arguments: ['@config.manager', '@entity_type.manager']
  21. tags:
  22. - { name: event_subscriber }
  23. content_moderation.route_subscriber:
  24. class: Drupal\content_moderation\Routing\ContentModerationRouteSubscriber
  25. arguments: ['@entity_type.manager']
  26. tags:
  27. - { name: event_subscriber }