Problem/Motivation

The ConfigFormBase::__construct() method in Drupal 11 core has changed.

Steps to reproduce

Install and enable the countries_import module on Drupal 11.
Go to /admin/config/content/countries-import

ArgumentCountError: Too few arguments to function Drupal\Core\Form\ConfigFormBase::__construct(), 1 passed in ../web/modules/contrib/countries_import/src/Form/SettingsFormBase.php on line 72 and exactly 2 expected in Drupal\Core\Form\ConfigFormBase->__construct() (line 44 of core/lib/Drupal/Core/Form/ConfigFormBase.php).
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

anthelixes created an issue. See original summary.

ritarshi_chakraborty’s picture

Working on it.

ritarshi_chakraborty’s picture

Status: Active » Needs review

I have added two more dependencies for the module.

1. content_translation because we are using ContentTranslationManagerInterface in SettingsFormBase
2. token because we are using it in FileUtils

We will face errors if these two modules are not installed.

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

anthelixes’s picture

Status: Needs review » Reviewed & tested by the community

anthelixes’s picture

Status: Reviewed & tested by the community » Fixed

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.

Status: Fixed » Closed (fixed)

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