generate-theme command puts quotes around YAML keys with spaces in them

Created on 8 June 2024, 3 months ago
Updated 17 July 2024, about 2 months ago

Problem/Motivation

The generate-theme command puts quotes around the 'base theme' YAML key in the generated theme's info.yml file, because it has spaces in it:

'base theme': stable9

Steps to reproduce

Do

$ php core/scripts/drupal generate-theme my_theme

and inspect the generated code.

Proposed resolution

AFAIK from my work on Module Builder, this is caused by Symfony's YAML dumper component.

Remaining tasks

User interface changes

API changes

Data model changes

Release notes snippet

🐛 Bug report
Status

Active

Version

11.0 🔥

Component
Base 

Last updated 23 minutes ago

Created by

🇬🇧United Kingdom joachim

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

Comments & Activities

Production build 0.71.5 2024