field_test.routing.yml

Same filename in other branches
  1. 8.9.x core/modules/field/tests/modules/field_test/field_test.routing.yml
  2. 10 core/modules/field/tests/modules/field_test/field_test.routing.yml
  3. 11.x core/modules/field/tests/modules/field_test/field_test.routing.yml
core/modules/field/tests/modules/field_test/field_test.routing.yml

File

core/modules/field/tests/modules/field_test/field_test.routing.yml

View source
  1. field_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. field_test.entity_constraints_nested_form:
  15. path: '/test-entity-constraints/nested/{entity_1}/{entity_2}'
  16. defaults:
  17. _title: 'Nested entity form'
  18. _form: '\Drupal\field_test\Form\NestedEntityTestForm'
  19. options:
  20. parameters:
  21. entity_1:
  22. type: 'entity:entity_test_constraints'
  23. entity_2:
  24. type: 'entity:entity_test_constraints'
  25. requirements:
  26. _permission: 'administer entity_test content'

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.