Allow wildcards in the `config:import` section of recipe.yml

Created on 17 June 2025, 7 days ago

Problem/Motivation

Recipes can list config to import from modules and themes. Right now, there are three ways for them to do it:

config:
  import:
    # Import everything from Taxonomy
    taxonomy: '*'
    # Import nothing from Node
    node: null
    # Import only certain things from Media
    media:
      - image.style.media_thumbnail

There's an additional case we should support - all config entities of a certain type:

config:
  import:
    media:
      - image.style.*

Some reasonable limitations we should impose:

  • You cannot use this wildcard capability to get a subset partially matched by name. For example, image.style.media_* is not allowed.
  • You can't use partial config prefixes. For example, image.* isn't allowed. Nor is image.*.media_thumbnail.

Proposed resolution

Add this feature as specified, with some test coverage.

✨ Feature request
Status

Active

Version

11.0 πŸ”₯

Component

recipe system

Created by

πŸ‡ΊπŸ‡ΈUnited States phenaproxima Massachusetts

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

Comments & Activities

Production build 0.71.5 2024