1field_test.entity_nested_form:
2  path: '/test-entity/nested/{entity_1}/{entity_2}'
3  defaults:
4    _title: 'Nested entity form'
5    _form: '\Drupal\field_test\Form\NestedEntityTestForm'
6  options:
7    parameters:
8      entity_1:
9        type: 'entity:entity_test'
10      entity_2:
11        type: 'entity:entity_test'
12  requirements:
13    _permission: 'administer entity_test content'
14
15field_test.entity_constraints_nested_form:
16  path: '/test-entity-constraints/nested/{entity_1}/{entity_2}'
17  defaults:
18    _title: 'Nested entity form'
19    _form: '\Drupal\field_test\Form\NestedEntityTestForm'
20  options:
21    parameters:
22      entity_1:
23        type: 'entity:entity_test_constraints'
24      entity_2:
25        type: 'entity:entity_test_constraints'
26  requirements:
27    _permission: 'administer entity_test content'
28