Explore additional approaches to handle missing ID or Category in layout plugin

Created on 13 March 2024, 10 months ago
Updated 30 May 2024, 7 months ago

Problem/Motivation

Follow up from πŸ› Add missing category to Drupal\layout_builder\Plugin\Layout\BlankLayout and let modules and themes alter the list of layouts Fixed other approaches proposed by @benjifisher

  • Add an optional parameter to LayoutPluginManager::getLayoutOptions() and pass it to getFilteredDefinitions(), using $this->getType() as a fallback.
  • Make $consumer optional in getFilteredDefinitions(), and invoke just the first hook if it is not provided.

Steps to reproduce

NA

Proposed resolution

TBD

Remaining tasks

TBD

User interface changes

NA

API changes

TBD

Data model changes

TBD

Release notes snippet

πŸ“Œ Task
Status

Active

Version

11.0 πŸ”₯

Component
Layout builderΒ  β†’

Last updated 4 days ago

Created by

πŸ‡ΊπŸ‡ΈUnited States smustgrave

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

Comments & Activities

Production build 0.71.5 2024