config_test.routing.yml 1.21 KB
Newer Older
1
config_test.list_page:
2
  path: '/admin/structure/config_test'
3
  defaults:
4
    _entity_list: 'config_test'
5
    _title: 'Test configuration'
6
7
  requirements:
    _access: 'TRUE'
8

9
config_test.entity_add:
10
  path: '/admin/structure/config_test/add'
11
12
13
14
15
  defaults:
    _entity_form: 'config_test'
  requirements:
    _access: 'TRUE'

16
config_test.entity:
17
  path: '/admin/structure/config_test/manage/{config_test}'
18
  defaults:
19
    _content: '\Drupal\config_test\ConfigTestController::edit'
20
21
22
23
    entity_type: 'config_test'
  requirements:
    _access: 'TRUE'

24
config_test.entity_enable:
25
  path: '/admin/structure/config_test/manage/{config_test}/enable'
26
27
28
29
30
31
  defaults:
    _content: '\Drupal\config_test\ConfigTestController::enable'
    entity_type: 'config_test'
  requirements:
    _access: 'TRUE'

32
config_test.entity_disable:
33
  path: '/admin/structure/config_test/manage/{config_test}/disable'
34
35
36
37
38
39
  defaults:
    _content: '\Drupal\config_test\ConfigTestController::disable'
    entity_type: 'config_test'
  requirements:
    _access: 'TRUE'

40
config_test.entity_delete:
41
  path: '/admin/structure/config_test/manage/{config_test}/delete'
42
  defaults:
43
    _entity_form: 'config_test.delete'
44
45
46
    entity_type: 'config_test'
  requirements:
    _access: 'TRUE'