Module config needs a schema

Created on 28 February 2025, about 1 month ago

Problem/Motivation

I was trying to update the config of this module in a recipe recently and it kept failing.

AssertionError: assert($typed_config instanceof Mapping) in /web/core/lib/Drupal/Core/Config/Action/ConfigActionManager.php on line 159 #0 /web/core/lib/Drupal/Core/Config/Action/ConfigActionManager.php(159): assert(false, 'assert($typed_c...')

I realised this is happening because there is no schema provided by the module.

Steps to reproduce

Write a recipe which installs this module and then try to do something like this in the recipe:

config:
  actions:
    media_thumbnails_video.settings:
      simpleConfigUpdate:
        ffmpeg: "/path/to/local/ffmpeg"
        ffprobe: "/path/to/local/ffprobe"

You will get the error when running the recipe.

Proposed resolution

Add a schema to the module.

Remaining tasks

Add the scheme to the module.

User interface changes

None.

API changes

Add schema.

Data model changes

None.

🐛 Bug report
Status

Active

Version

2.0

Component

Code

Created by

🇬🇧United Kingdom darren.fisher

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024