You are here

workspaces.routing.yml in Drupal 9

Same filename and directory in other branches
  1. 8 core/modules/workspaces/workspaces.routing.yml
core/modules/workspaces/workspaces.routing.yml

File

core/modules/workspaces/workspaces.routing.yml
View source
  1. entity.workspace.collection:
  2. path: '/admin/config/workflow/workspaces'
  3. defaults:
  4. _title: 'Workspaces'
  5. _entity_list: 'workspace'
  6. requirements:
  7. _permission: 'administer workspaces+edit any workspace'
  8. entity.workspace.activate_form:
  9. path: '/admin/config/workflow/workspaces/manage/{workspace}/activate'
  10. defaults:
  11. _entity_form: 'workspace.activate'
  12. _title: 'Activate Workspace'
  13. options:
  14. _admin_route: TRUE
  15. requirements:
  16. _entity_access: 'workspace.view'
  17. _custom_access: '\Drupal\workspaces\Form\WorkspaceActivateForm::checkAccess'
  18. entity.workspace.publish_form:
  19. path: '/admin/config/workflow/workspaces/manage/{workspace}/publish'
  20. defaults:
  21. _form: '\Drupal\workspaces\Form\WorkspacePublishForm'
  22. _title: 'Publish workspace'
  23. options:
  24. _admin_route: TRUE
  25. parameters:
  26. workspace:
  27. type: entity:workspace
  28. requirements:
  29. _permission: 'administer workspaces'
  30. entity.workspace.merge_form:
  31. path: '/admin/config/workflow/workspaces/manage/{source_workspace}/{target_workspace}/merge'
  32. defaults:
  33. _form: '\Drupal\workspaces\Form\WorkspaceMergeForm'
  34. _title: 'Merge workspace'
  35. options:
  36. _admin_route: TRUE
  37. parameters:
  38. source_workspace:
  39. type: entity:workspace
  40. target_workspace:
  41. type: entity:workspace
  42. requirements:
  43. _permission: 'administer workspaces'
  44. workspaces.switch_to_live:
  45. path: '/admin/config/workflow/workspaces/switch-to-live'
  46. defaults:
  47. _form: '\Drupal\workspaces\Form\SwitchToLiveForm'
  48. _title: 'Switch to Live'
  49. requirements:
  50. _user_is_logged_in: 'TRUE'
  51. _has_active_workspace: 'TRUE'