drupal/core/modules/workspaces/workspaces.routing.yml

37 lines
1.0 KiB
YAML
Raw Normal View History

entity.workspace.collection:
path: '/admin/config/workflow/workspaces'
defaults:
_title: 'Workspaces'
_entity_list: 'workspace'
requirements:
_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:
_entity_access: 'workspace.view'
entity.workspace.deploy_form:
path: '/admin/config/workflow/workspaces/manage/{workspace}/deploy'
defaults:
_entity_form: 'workspace.deploy'
_title: 'Deploy Workspace'
options:
_admin_route: TRUE
requirements:
_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:
_user_is_logged_in: 'TRUE'
_has_active_workspace: 'TRUE'