recipe.yml

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

File

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

View source
  1. name: Create node type
  2. install:
  3. - node
  4. input:
  5. node_type:
  6. data_type: string
  7. description: 'The ID of a node type to create'
  8. default:
  9. source: value
  10. value: 'test'
  11. config:
  12. actions:
  13. node.type.${node_type}:
  14. createIfNotExists:
  15. name: Test Content Type

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