diff --git a/core/modules/link/src/Plugin/Field/FieldWidget/LinkWidget.php b/core/modules/link/src/Plugin/Field/FieldWidget/LinkWidget.php index fd670fd9e932ef17437f911e3ae9925d0e722416..9af176cb03f6b96cef456d41459f9b29754196cb 100644 --- a/core/modules/link/src/Plugin/Field/FieldWidget/LinkWidget.php +++ b/core/modules/link/src/Plugin/Field/FieldWidget/LinkWidget.php @@ -193,9 +193,10 @@ public function formElement(FieldItemListInterface $items, $delta, array $elemen } // If the field is configured to allow only internal links, add a useful - // element prefix. + // element prefix and description. if (!$this->supportsExternalLinks()) { $element['uri']['#field_prefix'] = rtrim(\Drupal::url('', array(), array('absolute' => TRUE)), '/'); + $element['uri']['#description'] = $this->t('This must be an internal path such as %add-node. You can also start typing the title of a piece of content to select it. Enter %front to link to the front page.', array('%add-node' => '/node/add', '%front' => '')); } // If the field is configured to allow both internal and external links, // show a useful description.