2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
'#required_error'=>$this->t('Alternative text is required.<br><em>(Only in rare cases should this be left empty. To create empty alternative text, enter <code>""</code> — two double quotes without any content).'),
'#default_value'=>$alt,
'#maxlength'=>2048,
);
$form['dimensions']=array(
...
...
@@ -201,6 +213,12 @@ public function submitForm(array &$form, FormStateInterface $form_state) {