TypedConfigManagerInterface required for Drupal 11

Created on 13 January 2025, 4 months ago

Problem/Motivation

Error occurs when visiting the module settings page (admin/config/content/insert).

ArgumentCountError: Too few arguments to function Drupal\Core\Form\ConfigFormBase::__construct(), 1 passed in /var/www/html/web/modules/contrib/insert/src/Form/ConfigForm.php on line 18 and exactly 2 expected in Drupal\Core\Form\ConfigFormBase->__construct() (line 44 of /var/www/html/web/core/lib/Drupal/Core/Form/ConfigFormBase.php).

The error occurs due to the TypedConfigManagerInterface was optional in Drupal 10 but required in Drupal 11 as mentioned in https://www.drupal.org/node/3404140

Steps to reproduce

Fresh install of Drupal 11
Install insert module via composer
Enable module
Go to module settings page (admin/config/content/insert)

Proposed resolution

Add TypedConfigManagerInterface to src/Form/ConfigForm.php

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Active

Version

3.0

Component

Code

Created by

🇲🇾Malaysia stevechai

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

Comments & Activities

Production build 0.71.5 2024