Block Plugins don't store their context mappings on submit

Created on 26 November 2021, over 3 years ago
Updated 16 January 2025, 4 months ago

Problem/Motivation

BlockBase doesn't store the context mapping on submitConfigurationForm, even though it adds the necessary elements in build configuration form.

Steps to reproduce

Add a field_block on layout builder, notice that the context_mapping has not been stored.

Proposed resolution

Add the context_mapping to $this->configuration in block base.

Remaining tasks

🐛 Bug report
Status

Needs work

Version

11.0 🔥

Component

block.module

Created by

🇬🇧United Kingdom rlmumford Manchester

Live updates comments and jobs are added and updated live.
  • Needs tests

    The change is currently missing an automated test that fails when run with the original code, and succeeds when the bug has been fixed.

Sign in to follow issues

Merge Requests

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