diff --git a/core/modules/link/src/Plugin/Field/FieldWidget/LinkWidget.php b/core/modules/link/src/Plugin/Field/FieldWidget/LinkWidget.php index a68db27..e92fe53 100644 --- a/core/modules/link/src/Plugin/Field/FieldWidget/LinkWidget.php +++ b/core/modules/link/src/Plugin/Field/FieldWidget/LinkWidget.php @@ -174,7 +174,7 @@ public function formElement(FieldItemListInterface $items, $delta, array $elemen // If the link title is disabled, use the field definition label as the // title of the 'uri' element. if ($this->getFieldSetting('title') == DRUPAL_DISABLED) { - $element['uri']['#title'] = $this->fieldDefinition->getLabel(); + $element['uri']['#title'] = $element['#title']; } // Otherwise wrap everything in a details element. else {