X-Git-Url: http://aleph1.co.uk/gitweb/?a=blobdiff_plain;f=web%2Fcore%2Fmodules%2Flink%2Fsrc%2FPlugin%2FField%2FFieldWidget%2FLinkWidget.php;h=1319dc3d22999b7c4522a90a381d7f36bd611808;hb=9917807b03b64faf00f6a1f29dcb6eafc454efa5;hp=fd17a64c95d6fee7586136ebeb8205d293278b9c;hpb=a2bd1bf0c2c1f1a17d188f4dc0726a45494cefae;p=yaffs-website diff --git a/web/core/modules/link/src/Plugin/Field/FieldWidget/LinkWidget.php b/web/core/modules/link/src/Plugin/Field/FieldWidget/LinkWidget.php index fd17a64c9..1319dc3d2 100644 --- a/web/core/modules/link/src/Plugin/Field/FieldWidget/LinkWidget.php +++ b/web/core/modules/link/src/Plugin/Field/FieldWidget/LinkWidget.php @@ -176,6 +176,7 @@ class LinkWidget extends WidgetBase { '#element_validate' => [[get_called_class(), 'validateUriElement']], '#maxlength' => 2048, '#required' => $element['#required'], + '#link_type' => $this->getFieldSetting('link_type'), ]; // If the field is configured to support internal links, it cannot use the