Security update for Core, with self-updated composer
[yaffs-website] / web / core / modules / link / src / Plugin / Field / FieldWidget / LinkWidget.php
index fd17a64c95d6fee7586136ebeb8205d293278b9c..1319dc3d22999b7c4522a90a381d7f36bd611808 100644 (file)
@@ -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