Allow drupalSettings in libraryOverride

Created on 7 June 2025, 30 days ago

Version

  • Drupal version: 11.1.7
  • Twig version: (found with composer show twig/twig)

Problem/Motivation

In https://git.drupalcode.org/project/ui_suite_bootstrap/-/jobs/5484004, I got:

1) Drupal\Tests\ui_suite_bootstrap\Kernel\ComponentValidatorTest::testComponents
Drupal\Core\Render\Component\Exception\InvalidComponentException: [library] The property drupalSettings is not defined and the definition does not allow additional properties

Steps to reproduce

Have a component with:

libraryOverrides:
  drupalSettings: {}

Proposed resolution

Allow drupalSettings in libraryOverrides.

Remaining tasks

Feature request
Status

Active

Version

1.0

Component

Code

Created by

🇫🇷France Grimreaper France 🇫🇷

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

Comments & Activities

Production build 0.71.5 2024