entity_test.routing.yml 1.71 KB
Newer Older
1
entity_test.render:
2
  path: '/entity_test/{entity_test}'
3
  defaults:
4
    _entity_view: 'entity_test.full'
5
    _title: 'Test full view mode'
6 7 8
  requirements:
    _access: 'TRUE'

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
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'

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

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

55 56 57 58 59 60 61 62
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'

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