Drupal 11 issue on config form, ArgumentCountError: Too few arguments to function Drupal\Core\Form\ConfigFormBase::__construct()

Created on 3 September 2025, 13 days ago

Problem/Motivation

Drupal 11 introduced changes in how ConfigFormBase is structured. The constructor now requires two arguments:

Change record: https://www.drupal.org/node/3404140 β†’

ArgumentCountError: Too few arguments to function Drupal\Core\Form\ConfigFormBase::__construct(), 1 passed in /app/web/modules/contrib/elastic_email/src/Form/ElasticEmailSettingsForm.php on line 33 and exactly 2 expected in Drupal\Core\Form\ConfigFormBase->__construct() (line 44 of core/lib/Drupal/Core/Form/ConfigFormBase.php).

Steps to reproduce

1. Install Drupal 11
2. Install latest release of Elastic Email
3. Go to /admin/config/system/elastic_email/settings

Proposed resolution

Add $typed_config_manager argument to The \Drupal\Core\Form\ConfigFormBase::__construct in SettingsForm.php

πŸ› Bug report
Status

Active

Version

4.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States steve.elkins

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