Type of $typedConfigManager must not be defined

Created on 21 July 2025, 3 months ago

Problem/Motivation

The module in Drupal 10.2+ gives an error when trying to add a block in a view. Type of Drupal\views_insert_blocks\Form\BlockListForm::$typedConfigManager must not be defined and similar errors for BlockEditForm.

Steps to reproduce

  • Install the latest Drupal 10 version
  • Install the latest version of this module and enable module
  • Navigate to a random view and click on 'Add block'

Proposed resolution

Remove the protected keyword from constructor parameters in ConfigFormBase. When searching in the codebase of Drupal CMS many modules don't use protected in the constructor. Example:

ConfigFactoryInterface $config_factory, TypedConfigManagerInterface $typedConfigManager

Remaining tasks

  • Make a new code proposal for the change
  • Test in Drupal 10.2+ and Drupal 11

User interface changes

None

API changes

None

Data model changes

None

🐛 Bug report
Status

Active

Version

1.1

Component

Code

Created by

🇳🇱Netherlands coretex Deurne

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