Undefined array key "#title"
>>> [!note] Migrated issue
<!-- Drupal.org comment -->
<!-- Migrated from issue #3378342. -->
Reported by: [lostcarpark](https://www.drupal.org/user/346773)
Related to !1
>>>
<h3 id="summary-problem-motivation">Problem/Motivation</h3>
<p>Creating a new Markdown text format produced the below error.</p>
<h4 id="summary-steps-reproduce">Steps to reproduce</h4>
<ol>
<li>On a new site, I logged in as User 1, navigated to Admin->Configuration->Content authoring->Text formats and editors.</li>
<li>I typed "Markdown" for the Name and let it generate the machine name automatically.</li>
<li>For enabled filters I ticked <em>Markdown Easy</em> and <em>Limit allowed HTML tags and correct faulty HTML </em>.</li>
<li>I changed to order to put <em>Markdown</em> first.</li>
<li>Under Markdown settings I changed the flavor to GitHub.</li>
<li>I clicked save, and the error below is displayed. Note that the format does save.</li>
</ol>
<pre> Warning: Undefined array key "#title" in _markdown_easy_filter_format_form_submit() (line 46 of modules/contrib/markdown_easy/markdown_easy.module).<br><br>_markdown_easy_filter_format_form_submit(Array, Object)<br>call_user_func_array('_markdown_easy_filter_format_form_submit', Array) (Line: 114)<br>Drupal\Core\Form\FormSubmitter->executeSubmitHandlers(Array, Object) (Line: 52)<br>Drupal\Core\Form\FormSubmitter->doSubmitForm(Array, Object) (Line: 597)<br>Drupal\Core\Form\FormBuilder->processForm('filter_format_add_form', Array, Object) (Line: 325)<br>Drupal\Core\Form\FormBuilder->buildForm(Object, Object) (Line: 73)<br>Drupal\Core\Controller\FormController->getContentResult(Object, Object)<br>call_user_func_array(Array, Array) (Line: 123)<br>Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 583)<br>Drupal\Core\Render\Renderer->executeInRenderContext(Object, Object) (Line: 124)<br>Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext(Array, Array) (Line: 97)<br>Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 166)<br>Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object, 1) (Line: 74)<br>Symfony\Component\HttpKernel\HttpKernel->handle(Object, 1, 1) (Line: 58)<br>Drupal\Core\StackMiddleware\Session->handle(Object, 1, 1) (Line: 48)<br>Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object, 1, 1) (Line: 106)<br>Drupal\page_cache\StackMiddleware\PageCache->pass(Object, 1, 1) (Line: 85)<br>Drupal\page_cache\StackMiddleware\PageCache->handle(Object, 1, 1) (Line: 48)<br>Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object, 1, 1) (Line: 51)<br>Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object, 1, 1) (Line: 51)<br>Drupal\Core\StackMiddleware\StackedHttpKernel->handle(Object, 1, 1) (Line: 704)<br>Drupal\Core\DrupalKernel->handle(Object) (Line: 19)</pre><h3 id="summary-proposed-resolution">Proposed resolution</h3>
<h3 id="summary-remaining-tasks">Remaining tasks</h3>
<h3 id="summary-ui-changes">User interface changes</h3>
<h3 id="summary-api-changes">API changes</h3>
<h3 id="summary-data-model-changes">Data model changes</h3>
issue