Drupal 11 issue on config form, ArgumentCountError: Too few arguments to function Drupal\Core\Form\ConfigFormBase::__construct()
>>> [!note] Migrated issue <!-- Drupal.org comment --> <!-- Migrated from issue #3544690. --> Reported by: [steve.elkins](https://www.drupal.org/user/518000) Related to !5 >>> <h3 id="summary-problem-motivation">Problem/Motivation</h3> <p>Drupal 11 introduced changes in how ConfigFormBase is structured. The constructor now requires two arguments:</p> <p>Change record: <a href="https://www.drupal.org/node/3404140">https://www.drupal.org/node/3404140</a></p> <p>ArgumentCountError: Too few arguments to function Drupal\Core\Form\ConfigFormBase::__construct(), 1 passed in /app/web/modules/contrib/elastic_email/src/Form/ElasticEmailSettingsForm.php on line 33 and exactly 2 expected in Drupal\Core\Form\ConfigFormBase-&gt;__construct() (line 44 of core/lib/Drupal/Core/Form/ConfigFormBase.php).</p> <h4 id="summary-steps-reproduce">Steps to reproduce</h4> <p>1. Install Drupal 11<br> 2. Install latest release of Elastic Email<br> 3. Go to /admin/config/system/elastic_email/settings</p> <h3 id="summary-proposed-resolution">Proposed resolution</h3> <p>Add $typed_config_manager argument to The \Drupal\Core\Form\ConfigFormBase::__construct in ElasticEmailSettingsForm.php</p>
issue