summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlex Pott2014-07-16 12:49:48 (GMT)
committerAlex Pott2014-07-16 12:49:48 (GMT)
commit074bc73e5da31ee65a739eaaccaa4e5aaf1d7808 (patch)
tree789ac50cbe6507225a87765d7749fbe58ded6a08
parent045d3ed92f1052986a0ad654f8b69afb114ef151 (diff)
Issue #2297681 by cilefen, Wim Leers, cs_shadow | Charles Belov: Added Make the "alt" attribute required in EditorImageDialog.
-rw-r--r--core/modules/editor/src/Form/EditorImageDialog.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/core/modules/editor/src/Form/EditorImageDialog.php b/core/modules/editor/src/Form/EditorImageDialog.php
index 893b5a4..23a4e20 100644
--- a/core/modules/editor/src/Form/EditorImageDialog.php
+++ b/core/modules/editor/src/Form/EditorImageDialog.php
@@ -96,6 +96,7 @@ class EditorImageDialog extends FormBase {
$form['attributes']['alt'] = array(
'#title' => $this->t('Alternative text'),
'#type' => 'textfield',
+ '#required' => TRUE,
'#default_value' => isset($image_element['alt']) ? $image_element['alt'] : '',
'#maxlength' => 2048,
);