Commit 6b9fb326 authored by Crell's avatar Crell

Switch transitions to a route provider, too.

parent 35fd377c
......@@ -23,6 +23,9 @@ use Drupal\workbench_moderation\ModerationStateTransitionInterface;
* "edit" = "Drupal\workbench_moderation\Form\ModerationStateTransitionForm",
* "delete" = "Drupal\workbench_moderation\Form\ModerationStateTransitionDeleteForm"
* },
* "route_provider" = {
* "html" = "Drupal\Core\Entity\Routing\AdminHtmlRouteProvider"
* },
* "storage" = "Drupal\workbench_moderation\ModerationStateTransitionStorage"
* },
* config_prefix = "moderation_state_transition",
......
......@@ -17,6 +17,7 @@ entity.moderation_state.collection:
options:
_admin_route: TRUE
# @todo This can probably be removed after https://www.drupal.org/node/2596095
entity.moderation_state.add_form:
path: '/admin/structure/workbench-moderation/states/add'
defaults:
......@@ -38,6 +39,7 @@ entity.moderation_state_transition.collection:
options:
_admin_route: TRUE
# @todo This can probably be removed after https://www.drupal.org/node/2596095
entity.moderation_state_transition.add_form:
path: '/admin/structure/workbench-moderation/transitions/add'
defaults:
......@@ -47,23 +49,3 @@ entity.moderation_state_transition.add_form:
_permission: 'administer moderation state transitions'
options:
_admin_route: TRUE
entity.moderation_state_transition.edit_form:
path: '/admin/structure/workbench-moderation/transitions/{moderation_state_transition}'
defaults:
_entity_form: 'moderation_state_transition.edit'
_title: 'Edit Moderation state transition'
requirements:
_permission: 'administer moderation state transitions'
options:
_admin_route: TRUE
entity.moderation_state_transition.delete_form:
path: '/admin/structure/workbench-moderation/transitions/{moderation_state_transition}/delete'
defaults:
_entity_form: 'moderation_state_transition.delete'
_title: 'Delete Moderation state transition'
requirements:
_permission: 'administer moderation state transitions'
options:
_admin_route: TRUE
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment