[2.0.0-beta5] invalid context in ui_patterns_field_formatters from a view in dependency calculation

Created on 4 November 2024, 19 days ago

Problem/Motivation

There is an exception thrown in ui_patterns_field_formatters when using ui patterns field formatters in views row style plugins. the exception is thrown from calculateDependencies

Uncaught PHP Exception TypeError: "Drupal\ui_patterns_field_formatters\Plugin\UiPatterns\Source\FieldFormatterSource::createInstanceFormatter(): Argument #2 ($field_definition) must be of type Drupal\Core\Field\FieldDefinitionInterface, null given, called in modules/contrib/ui_patterns/modules/ui_patterns_field_formatters/src/Plugin/UiPatterns/Source/FieldFormatterSource.php on line 369" at modules/contrib/ui_patterns/modules/ui_patterns_field_formatters/src/Plugin/UiPatterns/Source/FieldFormatterSource.php line 248

This bug is provoked by an incomplete context injected by views plugins, when in the dependency calculation
(it is thrown when the views is saved)

🐛 Bug report
Status

Active

Version

2.0

Component

Code

Created by

🇫🇷France just_like_good_vibes PARIS

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