You are here

userswitch.routing.yml in User Switch 8

File

userswitch.routing.yml
View source
  1. userswitch.user.user_list:
  2. path: '/admin/people/switch-user-list'
  3. defaults:
  4. _controller: '\Drupal\userswitch\Controller\UserSwitchController::userSwitchList'
  5. _title: 'Switch User'
  6. requirements:
  7. _permission: 'administer users'
  8. userswitch.user.switch:
  9. path: '/admin/people/user/{uid}'
  10. defaults:
  11. _controller: '\Drupal\userswitch\Controller\UserSwitchController::switchuser'
  12. _title: 'Switch User'
  13. requirements:
  14. _permission: 'administer users'
  15. userswitch.backuser.switch:
  16. path: '/admin/people/backuser'
  17. defaults:
  18. _controller: '\Drupal\userswitch\Controller\UserSwitchController::switchbackuser'
  19. _title: 'User Back Switch'
  20. requirements:
  21. _custom_access: '\Drupal\userswitch\Controller\UserSwitchController::getUserSwitchPermissions'