You are here

workspaces.routing.yml in Drupal 8

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. entity.workspace.deploy_form:
  18. path: '/admin/config/workflow/workspaces/manage/{workspace}/deploy'
  19. defaults:
  20. _entity_form: 'workspace.deploy'
  21. _title: 'Deploy Workspace'
  22. options:
  23. _admin_route: TRUE
  24. requirements:
  25. _permission: 'administer workspaces'
  26. entity.workspace.merge_form:
  27. path: '/admin/config/workflow/workspaces/manage/{source_workspace}/{target_workspace}/merge'
  28. defaults:
  29. _form: '\Drupal\workspaces\Form\WorkspaceMergeForm'
  30. _title: 'Merge workspace'
  31. options:
  32. _admin_route: TRUE
  33. parameters:
  34. source_workspace:
  35. type: entity:workspace
  36. target_workspace:
  37. type: entity:workspace
  38. requirements:
  39. _permission: 'administer workspaces'
  40. workspaces.switch_to_live:
  41. path: '/admin/config/workflow/workspaces/switch-to-live'
  42. defaults:
  43. _form: '\Drupal\workspaces\Form\SwitchToLiveForm'
  44. _title: 'Switch to Live'
  45. requirements:
  46. _user_is_logged_in: 'TRUE'
  47. _has_active_workspace: 'TRUE'