SectionStorageManager::load() does not evaluate constraints

Created on 5 April 2019, almost 6 years ago
Updated 29 January 2025, about 1 month ago

Problem/Motivation

\Drupal\layout_builder\SectionStorage\SectionStorageManager::findByContext() currently uses filterPluginDefinitionsByContexts() which itself checks constraints.
But that is not run on ::load()

Proposed resolution

Check the requirements of the plugin context definitions

Remaining tasks

N/A

User interface changes

N/A

API changes

N/A

Data model changes

N/A

Release notes snippet

N/A

πŸ› Bug report
Status

Needs review

Version

11.0 πŸ”₯

Component

layout_builder.module

Created by

πŸ‡ΊπŸ‡ΈUnited States tim.plunkett Philadelphia

Live updates comments and jobs are added and updated live.
  • Blocks-Layouts

    Blocks and Layouts Initiative. See the #2811175 Add layouts to Drupal issue.

  • Needs issue summary update

    Issue summaries save everyone time if they are kept up-to-date. See Update issue summary task instructions.

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