diff --git a/core/modules/migrate/src/Audit/MaximumValueInterface.php b/core/modules/migrate/src/Audit/HighestIdInterface.php similarity index 86% rename from core/modules/migrate/src/Audit/MaximumValueInterface.php rename to core/modules/migrate/src/Audit/HighestIdInterface.php index fb84d2b73d..f180e460ec 100644 --- a/core/modules/migrate/src/Audit/MaximumValueInterface.php +++ b/core/modules/migrate/src/Audit/HighestIdInterface.php @@ -13,10 +13,10 @@ * When implemented by an ID map, getHighestId() should return the highest * migrated ID of the destination entity type. */ -interface MaximumValueInterface { +interface HighestIdInterface { /** - * Returns the highest ID value tracked by the implementing plugin. + * Returns the highest ID tracked by the implementing plugin. * * @return int * The highest ID. diff --git a/core/modules/migrate/src/Audit/IdAuditor.php b/core/modules/migrate/src/Audit/IdAuditor.php index c4b4096708..d6797ee4a2 100644 --- a/core/modules/migrate/src/Audit/IdAuditor.php +++ b/core/modules/migrate/src/Audit/IdAuditor.php @@ -23,15 +23,15 @@ public function audit(MigrationInterface $migration) { return AuditResult::pass($migration); } - $interface = MaximumValueInterface::class; + $interface = HighestIdInterface::class; $destination = $migration->getDestinationPlugin(); - if (!$destination instanceof MaximumValueInterface) { + if (!$destination instanceof HighestIdInterface) { throw new AuditException($migration, "Destination does not implement $interface"); } $id_map = $migration->getIdMap(); - if (!$id_map instanceof MaximumValueInterface) { + if (!$id_map instanceof HighestIdInterface) { throw new AuditException($migration, "ID map does not implement $interface"); } diff --git a/core/modules/migrate/src/Plugin/migrate/destination/EntityContentBase.php b/core/modules/migrate/src/Plugin/migrate/destination/EntityContentBase.php index 041443f476..734cab05a6 100644 --- a/core/modules/migrate/src/Plugin/migrate/destination/EntityContentBase.php +++ b/core/modules/migrate/src/Plugin/migrate/destination/EntityContentBase.php @@ -9,7 +9,7 @@ use Drupal\Core\Field\FieldTypePluginManagerInterface; use Drupal\Core\TypedData\TranslatableInterface; use Drupal\Core\TypedData\TypedDataInterface; -use Drupal\migrate\Audit\MaximumValueInterface; +use Drupal\migrate\Audit\HighestIdInterface; use Drupal\migrate\Plugin\MigrationInterface; use Drupal\migrate\MigrateException; use Drupal\migrate\Plugin\MigrateIdMapInterface; @@ -19,7 +19,7 @@ /** * The destination class for all content entities lacking a specific class. */ -class EntityContentBase extends Entity implements MaximumValueInterface { +class EntityContentBase extends Entity implements HighestIdInterface { /** * Entity manager. diff --git a/core/modules/migrate/src/Plugin/migrate/id_map/Sql.php b/core/modules/migrate/src/Plugin/migrate/id_map/Sql.php index a545b292f9..be0428162c 100644 --- a/core/modules/migrate/src/Plugin/migrate/id_map/Sql.php +++ b/core/modules/migrate/src/Plugin/migrate/id_map/Sql.php @@ -7,7 +7,7 @@ use Drupal\Core\Plugin\ContainerFactoryPluginInterface; use Drupal\Core\Plugin\PluginBase; use Drupal\migrate\MigrateMessage; -use Drupal\migrate\Audit\MaximumValueInterface; +use Drupal\migrate\Audit\HighestIdInterface; use Drupal\migrate\Plugin\MigrationInterface; use Drupal\migrate\Event\MigrateIdMapMessageEvent; use Drupal\migrate\MigrateException; @@ -28,7 +28,7 @@ * * @PluginID("sql") */ -class Sql extends PluginBase implements MigrateIdMapInterface, ContainerFactoryPluginInterface, MaximumValueInterface { +class Sql extends PluginBase implements MigrateIdMapInterface, ContainerFactoryPluginInterface, HighestIdInterface { /** * Column name of hashed source id values.