forked from ralt/addressfield
-
Notifications
You must be signed in to change notification settings - Fork 0
/
address.routing.yml
85 lines (77 loc) · 2.54 KB
/
address.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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
entity.address_format.collection:
path: '/admin/config/regional/address-formats'
defaults:
_entity_list: 'address_format'
_title: 'Address formats'
requirements:
_permission: 'administer address formats'
entity.address_format.import:
path: '/admin/config/regional/address-formats/import'
defaults:
_form: '\Drupal\address\Form\AddressFormatImporterForm'
_title: 'Import an address format'
requirements:
_permission: 'administer address formats'
entity.address_format.add_form:
path: '/admin/config/regional/address-formats/add'
defaults:
_entity_form: 'address_format.add'
_title: 'Add a new address format'
requirements:
_entity_create_access: 'address_format'
entity.address_format.edit_form:
path: '/admin/config/regional/address-formats/manage/{address_format}'
defaults:
_entity_form: 'address_format.edit'
_title: 'Edit an address format'
requirements:
_entity_access: 'address_format.update'
entity.address_format.delete_form:
path: '/admin/config/regional/address-formats/manage/{address_format}/delete'
defaults:
_entity_form: 'address_format.delete'
_title: 'Delete an address format'
requirements:
_entity_access: 'address_format.delete'
entity.subdivision.collection:
path: '/admin/config/regional/subdivisions/{address_format}/{parent}'
defaults:
parent: null
_controller: '\Drupal\address\Controller\SubdivisionController::buildList'
_title: 'Subdivisions'
options:
parameters:
address_format:
type: entity:address_format
parent:
type: entity:subdivision
requirements:
_permission: 'administer subdivisions'
entity.subdivision.add_form:
path: '/admin/config/regional/subdivisions/add/{address_format}/{parent}'
defaults:
parent: null
_controller: '\Drupal\address\Controller\SubdivisionController::addForm'
_title: 'Add a new subdivision'
options:
parameters:
address_format:
type: entity:address_format
parent:
type: entity:subdivision
requirements:
_entity_create_access: 'subdivision'
entity.subdivision.edit_form:
path: '/admin/config/regional/subdivisions/manage/{subdivision}'
defaults:
_entity_form: 'subdivision.edit'
_title: 'Edit a subdivision'
requirements:
_entity_access: 'subdivision.update'
entity.subdivision.delete_form:
path: '/admin/config/regional/subdivisions/manage/{subdivision}/delete'
defaults:
_entity_form: 'subdivision.delete'
_title: 'Delete a subdivision'
requirements:
_entity_access: 'subdivision.delete'