workspaces.routing.yml

Same filename in other branches
  1. 9 core/modules/workspaces/workspaces.routing.yml
  2. 8.9.x core/modules/workspaces/workspaces.routing.yml
  3. 10 core/modules/workspaces/workspaces.routing.yml
core/modules/workspaces/workspaces.routing.yml
8 string references to YAML keys in workspaces.routing.yml
RouteSubscriber::alterRoutes in core/modules/workspaces_ui/src/Routing/RouteSubscriber.php
WorkspaceListBuilder::getDefaultOperations in core/modules/workspaces/src/WorkspaceListBuilder.php
WorkspaceListBuilder::offCanvasRender in core/modules/workspaces/src/WorkspaceListBuilder.php
Renders the off canvas elements.
WorkspaceListBuilder::render in core/modules/workspaces/src/WorkspaceListBuilder.php
WorkspaceMergeForm::getCancelUrl in core/modules/workspaces/src/Form/WorkspaceMergeForm.php

... See full list

File

core/modules/workspaces/workspaces.routing.yml

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

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