content_moderation.services.yml

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

File

core/modules/content_moderation/content_moderation.services.yml

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

Services

Title Deprecated Summary
access_check.latest_revision Drupal\content_moderation\Access\LatestRevisionCheck
content_moderation.config_import_subscriber Drupal\content_moderation\EventSubscriber\ConfigImportSubscriber
content_moderation.moderation_information Drupal\content_moderation\ModerationInformation
content_moderation.route_subscriber Drupal\content_moderation\Routing\ContentModerationRouteSubscriber
content_moderation.state_transition_validation \Drupal\content_moderation\StateTransitionValidation
paramconverter.latest_revision Drupal\content_moderation\ParamConverter\EntityRevisionConverter

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