needless code in showForm()
>>> [!note] Migrated issue <!-- Drupal.org comment --> <!-- Migrated from issue #3528155. --> Reported by: [joachim](https://www.drupal.org/user/107701) Related to !9 >>> <h3 id="summary-problem-motivation">Problem/Motivation</h3> <p>WasteCollectionController::showForm() has these lines after it's got the form from the form builder service:</p> <pre>&nbsp;&nbsp;&nbsp; $form['postcode']['#title'] = $this-&gt;t("Postcode");<br>&nbsp;&nbsp;&nbsp; $form['postcode']['#description'] = $this-&gt;t('For example LA9 4DQ');</pre><p>These actually just re-do what's already in the form -- albeit with a different postcode!</p> <h4 id="summary-steps-reproduce">Steps to reproduce</h4> <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