ArgumentCountError: Too few arguments to function Drupal\Core\Form\ConfigFormBase::__construct()

Created on 26 November 2024, 22 days ago

Problem/Motivation

On Drupal 11 getting error on the "Emergency" form.

ArgumentCountError: Too few arguments to function Drupal\Core\Form\ConfigFormBase::__construct(), 1 passed in /app/docroot/modules/contrib/ds/src/Form/EmergencyForm.php on line 42 and exactly 2 expected in Drupal\Core\Form\ConfigFormBase->__construct() (line 43 of core/lib/Drupal/Core/Form/ConfigFormBase.php).

Since this form is calling parent::__construct, needs to be compatible.
Drupal Change Record is here:
- https://www.drupal.org/node/3404140 β†’
The issue was addressed on the "BlockFieldConfigForm.php " form here, but this one was missed
- https://www.drupal.org/project/ds/issues/3465666 πŸ“Œ Support Drupal 11 Fixed

Steps to reproduce

Visit the "Emergency" form in the Display Suite:
- /admin/structure/ds/emergency

Proposed resolution

Add in the TypedConfigManagerInterface for compatibility

Remaining tasks

_ Create Issue Fork
_ Test Changes
_ Merge Changes

User interface changes

None

API changes

None

Data model changes

None

πŸ› Bug report
Status

Active

Version

3.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States scott_earnest

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