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
7 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.
WorkspaceListBuilder::render in core/modules/workspaces/src/WorkspaceListBuilder.php
Builds the entity listing as renderable array for table.html.twig.
WorkspaceMergeForm::getCancelUrl in core/modules/workspaces/src/Form/WorkspaceMergeForm.php
Returns the route to go to if the user cancels the action.
WorkspacePublishForm::getCancelUrl in core/modules/workspaces/src/Form/WorkspacePublishForm.php
Returns the route to go to if the user cancels the action.

... See full list

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'

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