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

Created on 26 October 2024, 28 days ago

Steps to reproduce

After installing and enabling the module, when accessing to the admin form, we got the following error:
ArgumentCountError: Too few arguments to function Drupal\Core\Form\ConfigFormBase::__construct(), 1 passed in admincss/src/Form/AdminCssEditor.php on line 68 and exactly 2 expected in Drupal\Core\Form\ConfigFormBase->__construct() (line 43 of core/lib/Drupal/Core/Form/ConfigFormBase.php).

Proposed resolution

In Drupal 11, dependency injection is required to initialize ConfigFormBase properly, so you we to override the constructor in the form AdminCssEditor and pass both required arguments.

๐Ÿ› Bug report
Status

Active

Version

3.0

Component

module

Created by

๐Ÿ‡ธ๐Ÿ‡ฆSaudi Arabia yosriy

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