AssertionError because of wrong context definition

Created on 9 May 2025, 3 months ago

Problem/Motivation

When trying to edit any Component (UI Patterns) formatter settings I get a failed AJAX response because of this error:

AssertionError: assert(!str_starts_with($data_type, 'entity:') || $this instanceof EntityContextDefinition) in [constant expression]() (line 22 of /var/www/html/docroot/modules/contrib/ui_patterns_paragraphs/src/Plugin/UiPatterns/Source/ParagraphsBehaviorsSource.php).

Steps to reproduce

  1. Install this module
  2. Select Component (UI Patterns) as field formatter

Proposed resolution

Instead of using ContextDefinition we can switch to EntityContextDefinition that is fixing the error.

🐛 Bug report
Status

Active

Version

1.0

Component

Code

Created by

🇩🇪Germany yannickoo Berlin

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024