...
 
Commits (2)
......@@ -23,6 +23,9 @@ use Drupal\workbench_moderation\ModerationStateInterface;
* "edit" = "Drupal\workbench_moderation\Form\ModerationStateForm",
* "delete" = "Drupal\workbench_moderation\Form\ModerationStateDeleteForm"
* },
* "route_provider" = {
* "html" = "Drupal\Core\Entity\Routing\AdminHtmlRouteProvider"
* },
* },
* config_prefix = "moderation_state",
* admin_permission = "administer moderation states",
......
......@@ -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:
......@@ -27,26 +28,6 @@ entity.moderation_state.add_form:
options:
_admin_route: TRUE
entity.moderation_state.edit_form:
path: '/admin/structure/workbench-moderation/states/{moderation_state}'
defaults:
_entity_form: 'moderation_state.edit'
_title: 'Edit Moderation state'
requirements:
_permission: 'administer moderation states'
options:
_admin_route: TRUE
entity.moderation_state.delete_form:
path: '/admin/structure/workbench-moderation/states/{moderation_state}/delete'
defaults:
_entity_form: 'moderation_state.delete'
_title: 'Delete Moderation state'
requirements:
_permission: 'administer moderation states'
options:
_admin_route: TRUE
# ModerationStateTransition routing definition
entity.moderation_state_transition.collection:
path: '/admin/structure/workbench-moderation/transitions'
......@@ -58,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:
......@@ -67,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