Support generating recipes

Created on 13 August 2022, over 2 years ago
Updated 9 May 2024, 8 months ago

Problem/Motivation

Currently we package configuration into modules. Per the Distributions and Recipes initiative β†’ , a new type of configuration provision is planned for Drupal core: recipes.

Proposed resolution

At the bundle level, allow selection of what type to create: modules or recipes.

Remaining tasks

User interface changes

API changes

Data model changes

✨ Feature request
Status

Active

Version

5.0

Component

Code

Created by

πŸ‡¨πŸ‡¦Canada nedjo

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • πŸ‡ΊπŸ‡ΈUnited States dave reid Nebraska USA
  • πŸ‡¨πŸ‡¦Canada mandclu

    I'd be interested in helping with this, but I'm not very familiar with how Features works under the hood. Could a maintainer point me in the right direction on where to start?

  • πŸ‡«πŸ‡·France andypost

    +1 to provide submodule to export as recipes

  • πŸ‡¨πŸ‡¦Canada mandclu

    Poking around in the code a little, it seems like the logical place to start would be in the addPackageFiles() method of the FeaturesManager class. I can see some potential approaches to making these changes:

    1. Overwrite the current method and assume that recipes are the way forward (probably only acceptable if this would be the basis of a new major version)
    2. Put code into a submodule that would decorate the current FeaturesManager class
    3. Add some kind of global configuration option to export recipes instead of standard modules
    4. Add a per-feature option to export a recipe instead of a standard module

    Do the maintainers (or anyone else) have a preference on the best path forward?

  • πŸ‡«πŸ‡·France andypost

    The module can just decorate FeaturesManager

Production build 0.71.5 2024