workspaces.routing.yml
Same filename in other branches
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
File
-
core/
modules/ workspaces/ workspaces.routing.yml
View source
- # Access to these routes is enabled by the Workspaces UI module.
- entity.workspace.collection:
- path: '/admin/config/workflow/workspaces'
- defaults:
- _title: 'Workspaces'
- _entity_list: 'workspace'
- requirements:
- _access: 'FALSE'
- _permission: 'administer workspaces+edit any workspace'
-
- entity.workspace.activate_form:
- path: '/admin/config/workflow/workspaces/manage/{workspace}/activate'
- defaults:
- _entity_form: 'workspace.activate'
- _title: 'Activate Workspace'
- options:
- _admin_route: TRUE
- requirements:
- _access: 'FALSE'
- _entity_access: 'workspace.view'
- _custom_access: '\Drupal\workspaces\Form\WorkspaceActivateForm::checkAccess'
-
- entity.workspace.publish_form:
- path: '/admin/config/workflow/workspaces/manage/{workspace}/publish'
- defaults:
- _form: '\Drupal\workspaces\Form\WorkspacePublishForm'
- _title: 'Publish workspace'
- options:
- _admin_route: TRUE
- parameters:
- workspace:
- type: entity:workspace
- requirements:
- _access: 'FALSE'
- _permission: 'administer workspaces'
-
- entity.workspace.merge_form:
- path: '/admin/config/workflow/workspaces/manage/{source_workspace}/{target_workspace}/merge'
- defaults:
- _form: '\Drupal\workspaces\Form\WorkspaceMergeForm'
- _title: 'Merge workspace'
- options:
- _admin_route: TRUE
- parameters:
- source_workspace:
- type: entity:workspace
- target_workspace:
- type: entity:workspace
- requirements:
- _access: 'FALSE'
- _permission: 'administer workspaces'
-
- workspaces.switch_to_live:
- path: '/admin/config/workflow/workspaces/switch-to-live'
- defaults:
- _form: '\Drupal\workspaces\Form\SwitchToLiveForm'
- _title: 'Switch to Live'
- requirements:
- _access: 'FALSE'
- _user_is_logged_in: 'TRUE'
- _has_active_workspace: 'TRUE'
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.