Drupal 11 compatibility

Created on 18 June 2025, 9 days ago

Problem/Motivation

With Drupal 11, the settings form triggers this error:

[Wed Jun 18 23:15:17.854113 2025] [php:notice] [pid 1061324] [client 127.0.0.1:37672] Uncaught PHP Exception ArgumentCountError: "Too few arguments to function Drupal\\Core\\Form\\ConfigFormBase::__construct(), 1 passed in /home/pierre/www/drupal/web/modules/contrib/disable_login/src/Form/SettingsForm.php on line 33 and exactly 2 expected" at /home/pierre/www/drupal/web/core/lib/Drupal/Core/Form/ConfigFormBase.php line 44, referer: http://localhost/drupal/web/admin/modules

Steps to reproduce

Install the module on Drupal 11.
Browse to /admin/config/security/disable-login.

Proposed resolution

SettingsForm::__construct() should probably pass the config.typed service to the parent constructor.

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Active

Version

1.1

Component

Code

Created by

🇫🇷France prudloff Lille

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