entity_test.routing.yml 1.68 KB
Newer Older
1
entity_test.render:
2
  path: '/entity_test/{entity_test}'
3
  defaults:
4
    _entity_view: 'entity_test.full'
5 6 7
  requirements:
    _access: 'TRUE'

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
entity_test.delete_entity_test:
  path: '/entity_test/delete/entity_test/{entity_test}'
  defaults:
    _entity_form: entity_test.delete
  requirements:
    _access: 'TRUE'

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

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

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

36
entity_test.render_options:
37
  path: '/entity_test_converter/{foo}'
38 39 40
  options:
    parameters:
      foo:
41
        type: 'entity:entity_test'
42
  defaults:
43
    _entity_view: 'entity_test.full'
44 45 46
  requirements:
    _access: 'TRUE'

47
entity_test.render_no_view_mode:
48
  path: '/entity_test_no_view_mode/{entity_test}'
49
  defaults:
50
    _entity_view: 'entity_test'
51 52
  requirements:
    _access: 'TRUE'
53

54 55 56 57 58 59 60 61
entity_test.list_referencing_entities:
  path: '/entity_test/list/{entity_reference_field_name}/{referenced_entity_type}/{referenced_entity_id}'
  defaults:
    _content: '\Drupal\entity_test\Controller\EntityTestController::listReferencingEntities'
    _title: 'List entity_test entities referencing the given entity'
  requirements:
    _access: 'TRUE'

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