TypeError: Argument 2 passed to Drupal\eca_content\HookHandler::prepareForm() must be of the type string, null given
>>> [!note] Migrated issue
<!-- Drupal.org comment -->
<!-- Migrated from issue #3343459. -->
Reported by: [djdevin](https://www.drupal.org/user/701754)
Related to !311
>>>
<p>This happens with the following modules enabled, not yet sure which should be fixed:</p>
<p>eca_content<br>
webform<br>
metatags_webform</p>
<p>1. Enable all the modules<br>
2. Create a webform<br>
3. Go to Settings -> Metatags</p>
<p>TypeError: Argument 2 passed to Drupal\eca_content\HookHandler::prepareForm() must be of the type string, null given, called in /vagrant/www/next/web/modules/contrib/eca/modules/content/eca_content.module on line 160 in Drupal\eca_content\HookHandler->prepareForm() (line 165 of modules/contrib/eca/modules/content/src/HookHandler.php).</p>
<p>Drupal\eca_content\HookHandler->prepareForm() (Line: 160)<br>
eca_content_entity_prepare_form() (Line: 393)<br>
Drupal\Core\Entity\EntityForm->Drupal\Core\Entity\{closure}() (Line: 405)<br>
Drupal\Core\Extension\ModuleHandler->invokeAllWith() (Line: 394)<br>
Drupal\Core\Entity\EntityForm->prepareInvokeAll() (Line: 128)<br>
Drupal\Core\Entity\EntityForm->init() (Line: 96)<br>
Drupal\Core\Entity\EntityForm->buildForm()<br>
call_user_func_array() (Line: 534)<br>
Drupal\Core\Form\FormBuilder->retrieveForm() (Line: 281)<br>
Drupal\Core\Form\FormBuilder->buildForm() (Line: 73)<br>
Drupal\Core\Controller\FormController->getContentResult()<br>
call_user_func_array() (Line: 123)<br>
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 580)<br>
Drupal\Core\Render\Renderer->executeInRenderContext() (Line: 124)<br>
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext() (Line: 97)<br>
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 169)<br>
Symfony\Component\HttpKernel\HttpKernel->handleRaw() (Line: 81)<br>
Symfony\Component\HttpKernel\HttpKernel->handle() (Line: 68)<br>
Drupal\simple_oauth\HttpMiddleware\BasicAuthSwap->handle() (Line: 58)<br>
Drupal\Core\StackMiddleware\Session->handle() (Line: 48)<br>
Drupal\Core\StackMiddleware\KernelPreHandle->handle() (Line: 106)<br>
Drupal\page_cache\StackMiddleware\PageCache->pass() (Line: 85)<br>
Drupal\page_cache\StackMiddleware\PageCache->handle() (Line: 48)<br>
Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle() (Line: 51)<br>
Drupal\Core\StackMiddleware\NegotiationMiddleware->handle() (Line: 23)<br>
Stack\StackedHttpKernel->handle() (Line: 713)<br>
Drupal\Core\DrupalKernel->handle() (Line: 19)</p>
issue