Can’t add existing section to library

Created on 9 February 2022, almost 3 years ago
Updated 14 August 2024, 3 months ago

Problem/Motivation

When trying to add an element to the library from the default layout form (e.g. content type display settings), the following error is thrown:

Drupal\Component\Plugin\Exception\ContextException: The entity context is not a valid context. in Drupal\layout_builder\Plugin\SectionStorage\SectionStorageBase->getContextDefinition() (line 184 of \web\core\lib\Drupal\Core\Plugin\ContextAwarePluginTrait.php).

Proposed resolution

Check both the display and entity contexts to support both default and overridden layouts.

Remaining tasks

Reviews

User interface changes

None

API changes

None

Data model changes

None

πŸ› Bug report
Status

RTBC

Version

1.1

Component

Code

Created by

πŸ‡­πŸ‡ΊHungary Grabby

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