Closed (fixed)
Project:
Cleaner
Version:
3.0.0-alpha1
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
5 Dec 2025 at 13:48 UTC
Updated:
22 Dec 2025 at 19:14 UTC
Jump to comment: Most recent
Upon installation and going to the config form on Drupal 11.2.9, I am getting this:
ArgumentCountError: Too few arguments to function Drupal\Core\Form\ConfigFormBase::__construct(), 1 passed in /var/www/html/web/modules/contrib/cleaner/src/Form/CleanerSettingsForm.php on line 91 and exactly 2 expected in Drupal\Core\Form\ConfigFormBase->__construct() (line 44 of core/lib/Drupal/Core/Form/ConfigFormBase.php).
Is there something I need to do to make it work?
Thanks.
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
duckydan commentedComment #4
sergeydruua commentedI have updated CleanerSettingsForm to inject the config.typed service and pass it to the parent ConfigFormBase constructor.
This resolves the ArgumentCountError on Drupal 11 and maintains compatibility with Drupal 10.3+.
Comment #7
valentine94Meged to DEV branch, thanks
Comment #9
duckydan commentedWorks great now.
Thank you!