diff --git a/core/lib/Drupal/Core/Render/Element/OptGroup.php b/core/lib/Drupal/Core/Render/Element/OptGroup.php index 16af17d..18f5479 100644 --- a/core/lib/Drupal/Core/Render/Element/OptGroup.php +++ b/core/lib/Drupal/Core/Render/Element/OptGroup.php @@ -62,8 +62,6 @@ public function getInfo() { * @see _form_validate() */ public static function processOptGroup(&$element, FormStateInterface $form_state, &$complete_form) { - // @TODO This is ported from form_select_options(). But instead of - // checking #value, #default_value should be used here and below, right? $value_valid = isset($element['#value']) || array_key_exists('#value', $element); $value_is_array = $value_valid && is_array($element['#value']); // Check if the element is multiple select and no value has been selected.