workspaces.routing.yml

Same filename in other branches
  1. 9 core/modules/workspaces/workspaces.routing.yml
  2. 10 core/modules/workspaces/workspaces.routing.yml
  3. 11.x core/modules/workspaces/workspaces.routing.yml
core/modules/workspaces/workspaces.routing.yml
4 string references to YAML keys in workspaces.routing.yml
WorkspaceListBuilder::getDefaultOperations in core/modules/workspaces/src/WorkspaceListBuilder.php
Gets this list's default operations.
WorkspaceListBuilder::offCanvasRender in core/modules/workspaces/src/WorkspaceListBuilder.php
Renders the off canvas elements.
WorkspaceMergeForm::getCancelUrl in core/modules/workspaces/src/Form/WorkspaceMergeForm.php
Returns the route to go to if the user cancels the action.
workspaces_toolbar in core/modules/workspaces/workspaces.module
Implements hook_toolbar().

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'

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