Can’t add existing section to library

Created on 9 February 2022, almost 3 years ago
Updated 6 September 2022, over 2 years 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

Needs review

Version

1.0

Component

Code

Created by

πŸ‡­πŸ‡ΊHungary Grabby

Live updates comments and jobs are added and updated live.
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