content_moderation.services.yml

Same filename in other branches
  1. 9 core/modules/content_moderation/content_moderation.services.yml
  2. 8.9.x 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. _defaults:
  3. autoconfigure: true
  4. content_moderation.state_transition_validation:
  5. class: Drupal\content_moderation\StateTransitionValidation
  6. arguments: ['@content_moderation.moderation_information']
  7. Drupal\content_moderation\StateTransitionValidationInterface: '@content_moderation.state_transition_validation'
  8. content_moderation.moderation_information:
  9. class: Drupal\content_moderation\ModerationInformation
  10. arguments: ['@entity_type.manager', '@entity_type.bundle.info']
  11. Drupal\content_moderation\ModerationInformationInterface: '@content_moderation.moderation_information'
  12. access_check.latest_revision:
  13. class: Drupal\content_moderation\Access\LatestRevisionCheck
  14. arguments: ['@content_moderation.moderation_information']
  15. tags:
  16. - { name: access_check, applies_to: _content_moderation_latest_version }
  17. content_moderation.config_import_subscriber:
  18. class: Drupal\content_moderation\EventSubscriber\ConfigImportSubscriber
  19. arguments: ['@config.manager', '@entity_type.manager']
  20. content_moderation.route_subscriber:
  21. class: Drupal\content_moderation\Routing\ContentModerationRouteSubscriber
  22. arguments: ['@entity_type.manager']
  23. content_moderation.workspace_subscriber:
  24. class: Drupal\content_moderation\EventSubscriber\WorkspaceSubscriber
  25. arguments: ['@entity_type.manager', '@?workspaces.association']

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
content_moderation.workspace_subscriber Drupal\content_moderation\EventSubscriber\WorkspaceSubscriber
Drupal\content_moderation\ModerationInformationInterface
Drupal\content_moderation\StateTransitionValidationInterface
_defaults

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