recipe.yml

core/tests/fixtures/recipes/input_test/recipe.yml

File

core/tests/fixtures/recipes/input_test/recipe.yml

View source
  1. name: Input Test
  2. recipes:
  3. # Depend on another recipe in order to prove that we can collect input
  4. # from dependent recipes as well.
  5. - create_node_type
  6. input:
  7. owner:
  8. data_type: string
  9. description: 'The name of the site owner.'
  10. constraints:
  11. Regex:
  12. pattern: '/hack/i'
  13. match: false
  14. message: "I don't think you should be owning sites."
  15. form:
  16. '#type': textfield
  17. '#title': "Site owner's name"
  18. default:
  19. source: value
  20. value: 'Dries Buytaert'
  21. break_stuff:
  22. data_type: boolean
  23. description: 'Should mischief be allowed on this site? Not recommended.'
  24. form:
  25. '#type': checkbox
  26. '#title': 'Allow mischief'
  27. default:
  28. source: value
  29. value: false
  30. config:
  31. actions:
  32. system.site:
  33. simpleConfigUpdate:
  34. name: "${owner}'s Turf"

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