recipe.yml

core/recipes/example/recipe.yml

File

core/recipes/example/recipe.yml

View source
  1. # The name of the recipe.
  2. name: 'Example'
  3. # The description of the recipe.
  4. description: 'Provides an example recipe.'
  5. # The type key is similar to the package key in module.info.yml. It can be used
  6. # to group Drupal recipes.
  7. type: 'Content type'
  8. install:
  9. # An array of modules or themes to install if they are not already. The system
  10. # will detect if it is a theme or a module. During the install only simple
  11. # configuration from the new modules is created. This allows the Drupal recipe
  12. # control over the configuration.
  13. - node
  14. - text
  15. config:
  16. # A Drupal recipe can have a config directory. All configuration is this
  17. # directory will be imported after the modules have been installed.
  18. # Additionally, the Drupal recipe can install configuration entities provided
  19. # by the modules it configures. This allows them to not have to maintain or
  20. # copy this configuration.
  21. import:
  22. text:
  23. - text.settings
  24. # Import all configuration that is provided by the node module and any
  25. # optional configuration that depends on the text module that is provided by
  26. # modules already installed.
  27. node: '*'
  28. # Configuration actions may be defined. The structure here should be
  29. # entity_type.ID.action. Below, text.settings is updated to set the default
  30. # summary length for text fields to 700 characters.
  31. actions:
  32. text.settings:
  33. simpleConfigUpdate:
  34. default_summary_length: 700
  35. # A Drupal recipe can have a content directory. All content in this directory
  36. # will be created after the configuration is installed.

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