form_test.schema.yml

Same filename in other branches
  1. 9 core/modules/system/tests/modules/form_test/config/schema/form_test.schema.yml
  2. 8.9.x core/modules/system/tests/modules/form_test/config/schema/form_test.schema.yml
  3. 11.x core/modules/system/tests/modules/form_test/config/schema/form_test.schema.yml
core/modules/system/tests/modules/form_test/config/schema/form_test.schema.yml

File

core/modules/system/tests/modules/form_test/config/schema/form_test.schema.yml

View source
  1. form_test.object:
  2. type: config_object
  3. label: 'Test form'
  4. mapping:
  5. bananas:
  6. type: string
  7. label: 'Bananas'
  8. favorite_fruits:
  9. type: sequence
  10. label: 'Favorite fruits'
  11. sequence:
  12. type: required_label
  13. label: 'Fruit'
  14. favorite_vegetable:
  15. type: required_label
  16. label: 'Favorite vegetable'
  17. nemesis_vegetable:
  18. type: label
  19. label: 'Nemesis vegetable'
  20. could_not_live_without:
  21. type: string
  22. label: 'Which could you not live without: vegetables or fruits?'
  23. constraints:
  24. Choice:
  25. - fruits
  26. - vegetables

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