diff --git a/core/lib/Drupal/Core/Field/FieldTypePluginManager.php b/core/lib/Drupal/Core/Field/FieldTypePluginManager.php index 7dc16f3c50..80d5c2aa99 100644 --- a/core/lib/Drupal/Core/Field/FieldTypePluginManager.php +++ b/core/lib/Drupal/Core/Field/FieldTypePluginManager.php @@ -9,7 +9,6 @@ use Drupal\Core\Plugin\CategorizingPluginManagerTrait; use Drupal\Core\Plugin\DefaultPluginManager; use Drupal\Core\TypedData\TypedDataManagerInterface; -use Drupal\field\FieldStorageConfigInterface; /** * Plugin manager for 'field type' plugins. @@ -125,7 +124,7 @@ public function getDefaultFieldSettings($type) { /** * {@inheritdoc} */ - public function getStorageSettingsSummary(FieldStorageConfigInterface $field_definition) { + public function getStorageSettingsSummary(FieldStorageDefinitionInterface $field_definition) { $plugin_definition = $this->getDefinition($field_definition->getType(), FALSE); if (empty($plugin_definition['class'])) { return []; diff --git a/core/lib/Drupal/Core/Field/FieldTypePluginManagerInterface.php b/core/lib/Drupal/Core/Field/FieldTypePluginManagerInterface.php index 53e71e12f2..4945504f50 100644 --- a/core/lib/Drupal/Core/Field/FieldTypePluginManagerInterface.php +++ b/core/lib/Drupal/Core/Field/FieldTypePluginManagerInterface.php @@ -5,7 +5,6 @@ use Drupal\Component\Plugin\CategorizingPluginManagerInterface; use Drupal\Component\Plugin\PluginManagerInterface; use Drupal\Core\Entity\FieldableEntityInterface; -use Drupal\field\FieldStorageConfigInterface; /** * Defines an interface for the field type plugin manager. @@ -80,14 +79,14 @@ public function getDefaultStorageSettings($type); /** * Returns the summary of storage-level settings for a field type. * - * @param \Drupal\field\FieldStorageConfigInterface $field_definition + * @param FieldStorageDefinitionInterface $field_definition * The field definition. * * @return array * The field's storage-level settings summary, as provided by the plugin * definition, or an empty array if type or summary is undefined. */ - public function getStorageSettingsSummary(FieldStorageConfigInterface $field_definition); + public function getStorageSettingsSummary(FieldStorageDefinitionInterface $field_definition); /** * Returns the summary of field-level settings for a field type. diff --git a/core/modules/field_ui/src/FieldStorageConfigListBuilder.php b/core/modules/field_ui/src/FieldStorageConfigListBuilder.php index 7177ef7da0..ce2d3eba2d 100644 --- a/core/modules/field_ui/src/FieldStorageConfigListBuilder.php +++ b/core/modules/field_ui/src/FieldStorageConfigListBuilder.php @@ -3,10 +3,10 @@ namespace Drupal\field_ui; use Drupal\Core\Config\Entity\ConfigEntityListBuilder; -use Drupal\Core\Entity\EntityInterface; use Drupal\Core\Entity\EntityManagerInterface; use Drupal\Core\Entity\EntityTypeInterface; use Drupal\Core\Entity\EntityTypeBundleInfoInterface; +use Drupal\Core\Field\FieldStorageDefinitionInterface; use Drupal\Core\Field\FieldTypePluginManagerInterface; use Symfony\Component\DependencyInjection\ContainerInterface; @@ -95,7 +95,7 @@ public function buildHeader() { /** * {@inheritdoc} */ - public function buildRow(EntityInterface $field_storage) { + public function buildRow(FieldStorageDefinitionInterface $field_storage) { if ($field_storage->isLocked()) { $row['class'] = ['menu-disabled']; $row['data']['id'] = $this->t('@field_name (Locked)', ['@field_name' => $field_storage->getName()]); diff --git a/core/modules/field_ui/tests/src/Functional/ManageFieldsTest.php b/core/modules/field_ui/tests/src/Functional/ManageFieldsTest.php index 17c17ecc52..63d4e6eaa9 100644 --- a/core/modules/field_ui/tests/src/Functional/ManageFieldsTest.php +++ b/core/modules/field_ui/tests/src/Functional/ManageFieldsTest.php @@ -94,7 +94,7 @@ public function testFieldDropButtonOperations() { ]) ->save(); - $this->drupalGet('/admin/structure/types/manage/' . $bundle . '/fields'); + $this->drupalGet("/admin/structure/types/manage/{$bundle}/fields"); $element = $assert_session->elementExists('css', '#downlander'); $summary = $assert_session->elementExists('css', '.field-plugin-summary', $element); $custom_summary_text = 'Referenced entity type: Content';