suggestion.routing.yml in Autocomplete Search Suggestions 8
File
suggestion.routing.yml
View source
- suggestion.admin:
- path: '/admin/config/suggestion'
- defaults:
- _form: '\Drupal\suggestion\Form\SuggestionAdminForm'
- _title: 'Suggestion Settings'
- options:
- _admin_route: TRUE
- requirements:
- _permission: 'administer suggestion'
- weight: 10
-
- suggestion.autocomplete:
- path: '/suggestion/autocomplete'
- defaults:
- _controller: '\Drupal\suggestion\Controller\SuggestionController::autoComplete'
- _format: json
- requirements:
- # Save me from the people that would save me from myself.
- _access: 'TRUE'
-
- suggestion.edit:
- path: '/admin/config/suggestion/edit/{ngram}'
- defaults:
- _form: '\Drupal\suggestion\Form\SuggestionEditForm'
- _title: 'Edit Suggestion'
- ngram: ''
- options:
- _admin_route: TRUE
- requirements:
- _permission: 'administer suggestion'
- ngram: ^[a-z ]{3,60}$
- weight: 20
-
- suggestion.index:
- path: '/admin/config/suggestion/index'
- defaults:
- _form: '\Drupal\suggestion\Form\SuggestionIndexForm'
- _title: 'Suggestion Index'
- options:
- _admin_route: TRUE
- requirements:
- _permission: 'administer suggestion'
- weight: 30
-
- suggestion.list:
- path: '/admin/config/suggestion/search'
- defaults:
- _form: '\Drupal\suggestion\Form\SuggestionSearchForm'
- _title: 'Suggestion Search'
- ngram: ''
- options:
- _admin_route: TRUE
- requirements:
- _permission: 'administer suggestion'
- ngram: ^[a-z ]{3,60}$
- weight: 50
-
- suggestion.search:
- path: '/admin/config/suggestion/search/{ngram}'
- defaults:
- _form: '\Drupal\suggestion\Form\SuggestionSearchForm'
- _title: 'Suggestion Search'
- ngram: ''
- options:
- _admin_route: TRUE
- requirements:
- _permission: 'administer suggestion'
- ngram: ^[a-z ]{3,60}$
- weight: 60