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.

Issue fork cleaner-3561689

Command icon Show commands

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

duckydan created an issue. See original summary.

duckydan’s picture

Issue summary: View changes

sergeydruua made their first commit to this issue’s fork.

sergeydruua’s picture

Title: ArgumentCountError » Fix for ConfigFormBase constructor signature
Status: Active » Needs review

I 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+.

  • sergeydruua committed 1f7fd3bb on 3.0.x
    Issue #3561689: Fixed ArgumentCountError in CleanerSettingsForm...
valentine94’s picture

Status: Needs review » Fixed

Meged to DEV branch, thanks

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

duckydan’s picture

Works great now.

Thank you!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.