Incompatible with Paragraphs 1.18

Created on 19 August 2024, 3 months ago

Problem/Motivation

Paragraphs new version 1.18 added a sixth argument to its constructor (EntityFieldManager), thus Default Paragraphs' widget throws an error:

ArgumentCountError
: Too few arguments to function Drupal\paragraphs\Plugin\Field\FieldWidget\ParagraphsWidget::__construct(), 5 passed in web/modules/contrib/default_paragraphs/src/Plugin/Field/FieldWidget/DefaultParagraphsWidget.php on line 78 and exactly 6 expected in Drupal\paragraphs\Plugin\Field\FieldWidget\ParagraphsWidget->__construct()
(line 123 of modules/contrib/paragraphs/src/Plugin/Field/FieldWidget/ParagraphsWidget.php

Steps to reproduce

Update Paragraphs to 1.18 and try to create content which uses Default Paragraphs.

Proposed resolution

Update the Default Paragraphs Widget class to include the EntityFieldManager as sixth argument.

Remaining tasks

Write a patch.

User interface changes

None.

API changes

None.

Data model changes

None.

πŸ“Œ Task
Status

Active

Version

2.0

Component

Code

Created by

πŸ‡©πŸ‡ͺGermany broon Potsdam

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

Comments & Activities

Production build 0.71.5 2024