You are here

suggestion.routing.yml in Autocomplete Search Suggestions 8

Same filename and directory in other branches
  1. 8.2 suggestion.routing.yml
  2. 3.0.x suggestion.routing.yml

File

suggestion.routing.yml
View source
  1. suggestion.admin:
  2. path: '/admin/config/suggestion'
  3. defaults:
  4. _form: '\Drupal\suggestion\Form\SuggestionAdminForm'
  5. _title: 'Suggestion Settings'
  6. options:
  7. _admin_route: TRUE
  8. requirements:
  9. _permission: 'administer suggestion'
  10. weight: 10
  11. suggestion.autocomplete:
  12. path: '/suggestion/autocomplete'
  13. defaults:
  14. _controller: '\Drupal\suggestion\Controller\SuggestionController::autoComplete'
  15. _format: json
  16. requirements:
  17. # Save me from the people that would save me from myself.
  18. _access: 'TRUE'
  19. suggestion.edit:
  20. path: '/admin/config/suggestion/edit/{ngram}'
  21. defaults:
  22. _form: '\Drupal\suggestion\Form\SuggestionEditForm'
  23. _title: 'Edit Suggestion'
  24. ngram: ''
  25. options:
  26. _admin_route: TRUE
  27. requirements:
  28. _permission: 'administer suggestion'
  29. ngram: ^[a-z ]{3,60}$
  30. weight: 20
  31. suggestion.index:
  32. path: '/admin/config/suggestion/index'
  33. defaults:
  34. _form: '\Drupal\suggestion\Form\SuggestionIndexForm'
  35. _title: 'Suggestion Index'
  36. options:
  37. _admin_route: TRUE
  38. requirements:
  39. _permission: 'administer suggestion'
  40. weight: 30
  41. suggestion.list:
  42. path: '/admin/config/suggestion/search'
  43. defaults:
  44. _form: '\Drupal\suggestion\Form\SuggestionSearchForm'
  45. _title: 'Suggestion Search'
  46. ngram: ''
  47. options:
  48. _admin_route: TRUE
  49. requirements:
  50. _permission: 'administer suggestion'
  51. ngram: ^[a-z ]{3,60}$
  52. weight: 50
  53. suggestion.search:
  54. path: '/admin/config/suggestion/search/{ngram}'
  55. defaults:
  56. _form: '\Drupal\suggestion\Form\SuggestionSearchForm'
  57. _title: 'Suggestion Search'
  58. ngram: ''
  59. options:
  60. _admin_route: TRUE
  61. requirements:
  62. _permission: 'administer suggestion'
  63. ngram: ^[a-z ]{3,60}$
  64. weight: 60