This repository has been archived on 2025-01-19. You can view files and clone it, but cannot push or open issues or pull requests.
drupalcampbristol/core/modules/shortcut/shortcut.routing.yml

98 lines
2.9 KiB
YAML
Raw Normal View History

entity.shortcut_set.delete_form:
path: '/admin/config/user-interface/shortcut/manage/{shortcut_set}/delete'
defaults:
_entity_form: 'shortcut_set.delete'
_title: 'Delete shortcut set'
requirements:
_entity_access: 'shortcut_set.delete'
entity.shortcut_set.collection:
path: '/admin/config/user-interface/shortcut'
defaults:
_entity_list: 'shortcut_set'
_title: 'Shortcuts'
requirements:
_permission: 'administer shortcuts'
shortcut.set_add:
path: '/admin/config/user-interface/shortcut/add-set'
defaults:
_entity_form: 'shortcut_set.add'
_title: 'Add shortcut set'
requirements:
_entity_create_access: 'shortcut_set'
entity.shortcut_set.edit_form:
path: '/admin/config/user-interface/shortcut/manage/{shortcut_set}'
defaults:
_entity_form: 'shortcut_set.edit'
_title: 'Edit shortcut set'
requirements:
_entity_access: 'shortcut_set.update'
shortcut.link_add_inline:
path: '/admin/config/user-interface/shortcut/manage/{shortcut_set}/add-link-inline'
defaults:
_controller: 'Drupal\shortcut\Controller\ShortcutSetController::addShortcutLinkInline'
requirements:
_entity_access: 'shortcut_set.update'
_csrf_token: 'TRUE'
entity.shortcut_set.customize_form:
path: '/admin/config/user-interface/shortcut/manage/{shortcut_set}/customize'
defaults:
_entity_form: 'shortcut_set.customize'
_title: 'List links'
requirements:
_entity_access: 'shortcut_set.update'
shortcut.link_add:
path: '/admin/config/user-interface/shortcut/manage/{shortcut_set}/add-link'
defaults:
_controller: '\Drupal\shortcut\Controller\ShortcutController::addForm'
_title: 'Add link'
requirements:
_entity_create_access: 'shortcut:{shortcut_set}'
entity.shortcut.canonical:
path: '/admin/config/user-interface/shortcut/link/{shortcut}'
defaults:
_entity_form: 'shortcut.default'
_title: 'Edit'
requirements:
_entity_access: 'shortcut.update'
entity.shortcut.edit_form:
path: '/admin/config/user-interface/shortcut/link/{shortcut}'
defaults:
_entity_form: 'shortcut.default'
_title: 'Edit'
requirements:
_entity_access: 'shortcut.update'
entity.shortcut.link_delete_inline:
path: '/admin/config/user-interface/shortcut/link/{shortcut}/delete-inline'
defaults:
_controller: 'Drupal\shortcut\Controller\ShortcutController::deleteShortcutLinkInline'
requirements:
_entity_access: 'shortcut.delete'
_csrf_token: 'TRUE'
entity.shortcut.delete_form:
path: '/admin/config/user-interface/shortcut/link/{shortcut}/delete'
defaults:
_entity_form: 'shortcut.delete'
_title: 'Delete'
requirements:
_entity_access: 'shortcut.delete'
shortcut.set_switch:
path: '/user/{user}/shortcuts'
defaults:
_form: 'Drupal\shortcut\Form\SwitchShortcutSet'
_title: 'Shortcuts'
requirements:
_custom_access: 'Drupal\shortcut\Form\SwitchShortcutSet::checkAccess'
options:
_admin_route: TRUE