Hide the disabled layouts from the layout list

Created on 30 April 2025, 18 days ago

Problem/Motivation

Related to https://www.drupal.org/project/layout_library/issues/3421676 Don't display disabled layouts on the layout field Needs work

Even if it's not possible (yet) to enable/disable layouts via UI, it is by editing the configuration manually by setting the status to false. Would be nice to hide those from the layout field the disabled layouts.

Steps to reproduce

- Create a layout called "test" for the article content type
- drush cset layout_library.layout.test status false
- Go to create a new article content,

Proposed resolution

Filter the layout being listed by their status.

Feature request
Status

Active

Version

1.0

Component

Code

Created by

🇪🇸Spain unstatu

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

Comments & Activities

Production build 0.71.5 2024