token.routing.yml 613 B

12345678910111213141516171819202122
  1. token.tree:
  2. path: '/token/tree'
  3. defaults:
  4. _controller: '\Drupal\token\Controller\TokenTreeController::outputTree'
  5. requirements:
  6. _csrf_token: 'TRUE'
  7. token.autocomplete:
  8. path: '/token/autocomplete/{token_type}/{filter}'
  9. defaults:
  10. _controller: '\Drupal\token\Controller\TokenAutocompleteController::autocomplete'
  11. requirements:
  12. _access: 'TRUE'
  13. token.flush_cache:
  14. path: '/token/flush-cache'
  15. defaults:
  16. _controller: '\Drupal\token\Controller\TokenCacheController::flush'
  17. requirements:
  18. _permission: 'flush caches'
  19. _csrf_token: 'TRUE'
  20. _module_dependencies: 'admin_menu'