-
Notifications
You must be signed in to change notification settings - Fork 2
/
template_whisperer.routing.yml
67 lines (62 loc) · 2.61 KB
/
template_whisperer.routing.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
# Collection page.
entity.template_whisperer_suggestion.collection:
path: '/admin/structure/template-whisperer'
defaults:
# Calls the "list" controller, defined as annotation
# of the template whisperer suggestion entity.
_entity_list: 'template_whisperer_suggestion'
_title: 'List suggestion(s)'
requirements:
_permission: 'administer template whisperer suggestion entities'
# Usage page.
entity.template_whisperer_suggestion.usage:
path: '/admin/structure/template-whisperer/{template_whisperer_suggestion}/usage'
defaults:
# Calls the "usage" controller, defined as annotation
# of the template whisperer suggestion entity.
_controller: '\Drupal\template_whisperer\Controller\AdminSuggestionController::usage'
_title: 'Suggestion usage information'
requirements:
_permission: 'administer template whisperer suggestion entities'
options:
parameters:
template_whisperer_suggestion:
type: entity:template_whisperer_suggestion
# Detail page.
entity.template_whisperer_suggestion.canonical:
path: '/admin/structure/template-whisperer/{template_whisperer_suggestion}'
defaults:
# Calls the "view" controller, defined as annotation
# of the template whisperer suggestion entity.
_entity_view: 'template_whisperer_suggestion'
_title: 'View suggestion'
requirements:
_permission: 'administer template whisperer suggestion entities'
# Actions.
entity.template_whisperer_suggestion.add_form:
path: '/admin/structure/template-whisperer/add'
defaults:
# Calls the "form.add" controller, defined as annotation
# of the template whisperer suggestion entity.
_entity_form: template_whisperer_suggestion.add
_title: 'Add suggestion'
requirements:
_permission: 'administer template whisperer suggestion entities'
entity.template_whisperer_suggestion.edit_form:
path: '/admin/structure/template-whisperer/{template_whisperer_suggestion}/edit'
defaults:
# Calls the "form.edit" controller, defined as annotation
# of the template whisperer suggestion entity.
_entity_form: template_whisperer_suggestion.edit
_title: 'Edit suggestion'
requirements:
_permission: 'administer template whisperer suggestion entities'
entity.template_whisperer_suggestion.delete_form:
path: '/admin/structure/template-whisperer/{template_whisperer_suggestion}/delete'
defaults:
# Calls the "form.delete" controller, defined as annotation
# of the template whisperer suggestion entity.
_entity_form: template_whisperer_suggestion.delete
_title: 'Delete suggestion'
requirements:
_permission: 'administer template whisperer suggestion entities'