diff --git a/core/lib/Drupal/Core/Datetime/Element/Datelist.php b/core/lib/Drupal/Core/Datetime/Element/Datelist.php index 7eb51a603d..d81f39a3eb 100644 --- a/core/lib/Drupal/Core/Datetime/Element/Datelist.php +++ b/core/lib/Drupal/Core/Datetime/Element/Datelist.php @@ -173,9 +173,6 @@ public static function valueCallback(&$element, $input, FormStateInterface $form * @return array */ public static function processDatelist(&$element, FormStateInterface $form_state, &$complete_form) { - // Remove the type from the wrapper of the expanded elements. - unset($element['#type']); - // Load translated date part labels from the appropriate calendar plugin. $date_helper = new DateHelper(); diff --git a/core/lib/Drupal/Core/Form/FormBuilder.php b/core/lib/Drupal/Core/Form/FormBuilder.php index 8d94116dd0..a2066730c9 100644 --- a/core/lib/Drupal/Core/Form/FormBuilder.php +++ b/core/lib/Drupal/Core/Form/FormBuilder.php @@ -1006,6 +1006,7 @@ public function doBuildForm($form_id, &$element, FormStateInterface &$form_state 'token', 'value', 'item', + 'datelist', ]; if (isset($element['#type']) && !in_array($element['#type'], $types_to_skip) && !empty($element['#input']) && empty($element['#attributes']['aria-labelledby'])) { $title_key = in_array($element['#type'], ['button', 'submit']) ? '#value' : '#title'; diff --git a/core/modules/system/tests/modules/form_test/src/Form/FormTestDisabledElementsForm.php b/core/modules/system/tests/modules/form_test/src/Form/FormTestDisabledElementsForm.php index fa842d456e..7a15a394ff 100644 --- a/core/modules/system/tests/modules/form_test/src/Form/FormTestDisabledElementsForm.php +++ b/core/modules/system/tests/modules/form_test/src/Form/FormTestDisabledElementsForm.php @@ -209,6 +209,7 @@ public function buildForm(array $form, FormStateInterface $form_state) { $form['image_button'] = [ '#type' => 'image_button', '#title' => 'Image button', + '#value' => 'Image button', '#disabled' => TRUE, ]; $form['button'] = [ diff --git a/core/modules/views/src/Plugin/views/display/DisplayPluginBase.php b/core/modules/views/src/Plugin/views/display/DisplayPluginBase.php index 4fe9d1e204..a5719f4f13 100644 --- a/core/modules/views/src/Plugin/views/display/DisplayPluginBase.php +++ b/core/modules/views/src/Plugin/views/display/DisplayPluginBase.php @@ -1706,6 +1706,8 @@ public function buildOptionsForm(&$form, FormStateInterface $form_state) { $form['link_display'] = [ '#type' => 'radios', + '#title' => $this->t('Link display'), + '#title_display' => 'invisible', '#options' => $options, '#description' => $this->t("Which display to use to get this display's path for things like summary links, rss feed links, more links, etc."), '#default_value' => $this->getOption('link_display'), diff --git a/core/modules/views/tests/modules/views_test_data/src/Form/ViewsTestDataErrorForm.php b/core/modules/views/tests/modules/views_test_data/src/Form/ViewsTestDataErrorForm.php index 6ad0361cde..139efd3d86 100644 --- a/core/modules/views/tests/modules/views_test_data/src/Form/ViewsTestDataErrorForm.php +++ b/core/modules/views/tests/modules/views_test_data/src/Form/ViewsTestDataErrorForm.php @@ -23,6 +23,7 @@ public function getFormId() { public function buildForm(array $form, FormStateInterface $form_state) { $form['text'] = [ '#type' => 'textfield', + '#title' => t('Text'), ]; $form['submit'] = [ '#type' => 'submit',