summaryrefslogtreecommitdiffstats
path: root/core/modules/system/tests/modules/entity_test/entity_test.routing.yml
blob: 8d1283be00d86c152b175d7dea765867ed095555 (plain)
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
86
87
88
89
90
91
92
93
94
entity.entity_test.canonical:
  path: '/entity_test/{entity_test}'
  defaults:
    _entity_view: 'entity_test.full'
    _title: 'Test full view mode'
  requirements:
    _access: 'TRUE'

entity.entity_test.delete_form:
  path: '/entity_test/delete/entity_test/{entity_test}'
  defaults:
    _entity_form: entity_test.delete
  requirements:
    _access: 'TRUE'

entity.entity_test_mul.delete_form:
  path: '/entity_test/delete/entity_test_mul/{entity_test_mul}'
  defaults:
    _entity_form: entity_test_mul.delete
  requirements:
    _access: 'TRUE'

entity.entity_test_mulrev.delete_form:
  path: '/entity_test/delete/entity_test_mulrev/{entity_test_mulrev}'
  defaults:
    _entity_form: entity_test_mulrev.delete
  requirements:
    _access: 'TRUE'

entity.entity_test_rev.delete_form:
  path: '/entity_test/delete/entity_test_rev/{entity_test_rev}'
  defaults:
    _entity_form: entity_test_rev.delete
  requirements:
    _access: 'TRUE'

entity.entity_test.render_options:
  path: '/entity_test_converter/{foo}'
  options:
    parameters:
      foo:
        type: 'entity:entity_test'
  defaults:
    _entity_view: 'entity_test.full'
  requirements:
    _access: 'TRUE'

entity.entity_test.render_no_view_mode:
  path: '/entity_test_no_view_mode/{entity_test}'
  defaults:
    _entity_view: 'entity_test'
  requirements:
    _access: 'TRUE'

entity.entity_test.list_referencing_entities:
  path: '/entity_test/list/{entity_reference_field_name}/{referenced_entity_type}/{referenced_entity_id}'
  defaults:
    _controller: '\Drupal\entity_test\Controller\EntityTestController::listReferencingEntities'
    _title: 'List entity_test entities referencing the given entity'
  requirements:
    _access: 'TRUE'

entity.entity_test.list_labels_alphabetically:
  path: '/entity_test/list_labels_alphabetically/{entity_type_id}'
  defaults:
    _controller: '\Drupal\entity_test\Controller\EntityTestController::listEntitiesAlphabetically'
    _title: 'List labels of entities of the given entity type alphabetically'
  requirements:
    _access: 'TRUE'

entity.entity_test.list_empty:
  path: '/entity_test/list_empty/{entity_type_id}'
  defaults:
    _controller: '\Drupal\entity_test\Controller\EntityTestController::listEntitiesEmpty'
    _title: 'Empty list of entities of the given entity type, empty because no entities match the query'
  requirements:
    _access: 'TRUE'

entity.block.test_operation:
  path: '/admin/structure/block/manage/{block}/test_operation'
  defaults:
    _entity_view: 'entity_test'
  requirements:
    _access: 'TRUE'

entity.user_role.test_operation:
  path: '/admin/people/roles/manage/{user_role}/test_operation'
  defaults:
    _entity_view: 'entity_test'
  requirements:
    _access: 'TRUE'

route_callbacks:
  - '\Drupal\entity_test\Routing\EntityTestRoutes::routes'