Skip to content
shortcut.routing.yml 2.98 KiB
Newer Older
entity.shortcut_set.delete_form:
  path: '/admin/config/user-interface/shortcut/manage/{shortcut_set}/delete'
  path: '/admin/config/user-interface/shortcut'
  requirements:
    _permission: 'administer shortcuts'
  path: '/admin/config/user-interface/shortcut/add-set'
entity.shortcut_set.edit_form:
  path: '/admin/config/user-interface/shortcut/manage/{shortcut_set}'
  defaults:
  requirements:
  path: '/admin/config/user-interface/shortcut/manage/{shortcut_set}/add-link-inline'
    _controller: '\Drupal\shortcut\Controller\ShortcutSetController::addShortcutLinkInline'
entity.shortcut_set.customize_form:
  path: '/admin/config/user-interface/shortcut/manage/{shortcut_set}/customize'

shortcut.link_add:
  path: '/admin/config/user-interface/shortcut/manage/{shortcut_set}/add-link'
  defaults:
    _controller: '\Drupal\shortcut\Controller\ShortcutController::addForm'
    _entity_create_access: 'shortcut:{shortcut_set}'
  path: '/admin/config/user-interface/shortcut/link/{shortcut}'
  defaults:
    _entity_form: 'shortcut.default'
  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'
    _entity_access: 'shortcut.delete'
    _form: '\Drupal\shortcut\Form\SwitchShortcutSet'
    _custom_access: '\Drupal\shortcut\Form\SwitchShortcutSet::checkAccess'