Document that the 'css' property no longer works after upgrading from layout plugin

Created on 26 April 2017, almost 8 years ago
Updated 18 March 2025, 18 days ago

Problem/Motivation

According to How to register layouts with Layout Plugin and How to upgrade from Layout Plugin , a layout can provide a CSS like this:

one_column:
  label: One column
  category: My Layouts
  template: templates/one-column
  css: css/one-column.css
  regions:
    main:
      label: Main content

However, the CSS key does not work anymore, leading e.g. to #2872954: Drupal 8.3 Layout system breaks layouts CSS .
Layout discovery itself also does explicitly declare libraries in core/modules/layout_discovery/layout_discovery.libraries.yml

Long story short: Existing yml defined layouts break.

As a major upgrade repercussion setting major.

Proposed resolution

Add the css key recognition like in old layout module.

OR: Explain why and update How to upgrade from Layout Plugin

Remaining tasks

Code, test, commit.

User interface changes

None.

API changes

Pure addition.

Data model changes

None.

📌 Task
Status

Postponed

Version

11.0 🔥

Component

layout_discovery.module

Created by

🇩🇪Germany geek-merlin Freiburg, Germany

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.

Production build 0.71.5 2024