This repository has been archived by the owner on Jul 18, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathcountries.routing.yml
63 lines (58 loc) · 1.67 KB
/
countries.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
entity.country.collection:
path: '/admin/config/regional/countries'
defaults:
_entity_list: 'country'
_title: 'Countries'
requirements:
_permission: 'administer countries'
entity.country.add:
path: 'admin/config/regional/countries/add'
defaults:
_entity_form: country.add
_title: 'Add a country'
requirements:
_permission: 'administer countries'
entity.country.edit_form:
path: '/admin/config/regional/countries/{country}'
defaults:
_entity_form: country.edit
_title_callback: '\Drupal\countries\Controller\CountryController::editCountryTitle'
requirements:
_permission: 'administer countries'
options:
parameters:
country:
type: entity:country
entity.country.delete_form:
path: '/admin/config/regional/countries/{country}/delete'
defaults:
_entity_form: country.delete
_title_callback: '\Drupal\countries\Controller\CountryController::deleteCountryTitle'
requirements:
_permission: 'administer countries'
options:
parameters:
country:
type: entity:country
entity.country.disable:
path: '/admin/config/regional/countries/{country}/disable'
defaults:
_entity_form: 'country.disable'
_title: 'Disable country'
requirements:
_entity_access: 'country.disable'
options:
parameters:
country:
type: entity:country
entity.country.enable:
path: '/admin/config/regional/countries/{country}/enable'
defaults:
_entity_form: 'country.enable'
_title: 'Enable country'
requirements:
_entity_access: 'country.enable'
options:
parameters:
country:
type: entity:country