diff --git a/core/modules/link/src/Plugin/Field/FieldWidget/LinkWidget.php b/core/modules/link/src/Plugin/Field/FieldWidget/LinkWidget.php index 37a61ee..fcb6c76 100644 --- a/core/modules/link/src/Plugin/Field/FieldWidget/LinkWidget.php +++ b/core/modules/link/src/Plugin/Field/FieldWidget/LinkWidget.php @@ -244,6 +244,14 @@ public function formElement(FieldItemListInterface $items, $delta, array $elemen // title of the 'uri' element. if ($this->getFieldSetting('title') == DRUPAL_DISABLED) { $element['uri']['#title'] = $element['#title']; + if (!empty($element['#description'])) { + if (empty($element['uri']['#description'])) { + $element['uri']['#description'] = $element['#description']; + } + else { + $element['uri']['#description'] .= '
' . $element['#description']; + } + } } // Otherwise wrap everything in a details element. else {