diff --git a/core/modules/link/lib/Drupal/link/Plugin/Field/FieldType/LinkItem.php b/core/modules/link/lib/Drupal/link/Plugin/Field/FieldType/LinkItem.php index edd2d96b52007ac3a5ecb2564de9c687808a3ca4..3c914aea3f1afeb548bbdd480d99df2b13f3c190 100644 --- a/core/modules/link/lib/Drupal/link/Plugin/Field/FieldType/LinkItem.php +++ b/core/modules/link/lib/Drupal/link/Plugin/Field/FieldType/LinkItem.php @@ -104,7 +104,6 @@ public function instanceSettingsForm(array $form, array &$form_state) { * {@inheritdoc} */ public function preSave() { - $item = $this->getValue(); // Trim any spaces around the URL and link text. $this->url = trim($this->url); $this->title = trim($this->title);