diff --git a/core/modules/link/src/Plugin/Field/FieldWidget/LinkWidget.php b/core/modules/link/src/Plugin/Field/FieldWidget/LinkWidget.php index a8852ef..fbe15b3 100644 --- a/core/modules/link/src/Plugin/Field/FieldWidget/LinkWidget.php +++ b/core/modules/link/src/Plugin/Field/FieldWidget/LinkWidget.php @@ -10,7 +10,6 @@ use Drupal\Core\Field\FieldItemListInterface; use Drupal\Core\Field\WidgetBase; use Drupal\Core\Form\FormStateInterface; -use Drupal\Core\Url; use Drupal\link\LinkItemInterface; /** diff --git a/core/modules/link/src/Tests/LinkFieldTest.php b/core/modules/link/src/Tests/LinkFieldTest.php index e3e4ac6..c7eb596 100644 --- a/core/modules/link/src/Tests/LinkFieldTest.php +++ b/core/modules/link/src/Tests/LinkFieldTest.php @@ -184,7 +184,7 @@ protected function assertInvalidEntries($field_name, array $invalid_entries) { /** * Tests the link title settings of a link field. */ - function ptestLinkTitle() { + function testLinkTitle() { $field_name = drupal_strtolower($this->randomMachineName()); // Create a field with settings to validate. $this->fieldStorage = entity_create('field_storage_config', array( @@ -302,7 +302,7 @@ function ptestLinkTitle() { /** * Tests the default 'link' formatter. */ - function ptestLinkFormatter() { + function testLinkFormatter() { $field_name = drupal_strtolower($this->randomMachineName()); // Create a field with settings to validate. $this->fieldStorage = entity_create('field_storage_config', array( @@ -444,7 +444,7 @@ function ptestLinkFormatter() { * This test is mostly the same as testLinkFormatter(), but they cannot be * merged, since they involve different configuration and output. */ - function ptestLinkSeparateFormatter() { + function testLinkSeparateFormatter() { $field_name = drupal_strtolower($this->randomMachineName()); // Create a field with settings to validate. $this->fieldStorage = entity_create('field_storage_config', array(