You are here

masquerade.routing.yml in Masquerade 8.2

File

masquerade.routing.yml
View source
  1. masquerade.block:
  2. path: '/masquerade'
  3. defaults:
  4. _form: '\Drupal\masquerade\Form\MasqueradeForm'
  5. _title: 'Masquerade'
  6. options:
  7. no_cache: TRUE
  8. requirements:
  9. _masquerade_switch_access: 'TRUE'
  10. entity.user.masquerade:
  11. path: '/user/{user}/masquerade'
  12. defaults:
  13. _controller: '\Drupal\masquerade\Controller\SwitchController::switchTo'
  14. _title: 'Masquerade'
  15. requirements:
  16. _csrf_token: 'TRUE'
  17. masquerade.unmasquerade:
  18. path: '/unmasquerade'
  19. defaults:
  20. _controller: '\Drupal\masquerade\Controller\SwitchController::switchBack'
  21. _title: 'Unmasquerade'
  22. requirements:
  23. _user_is_masquerading: 'TRUE'
  24. _csrf_token: 'TRUE'