diff --git a/core/modules/migrate_drupal/migrate_drupal.module b/core/modules/migrate_drupal/migrate_drupal.module index ead65f9694d..aac411646f4 100644 --- a/core/modules/migrate_drupal/migrate_drupal.module +++ b/core/modules/migrate_drupal/migrate_drupal.module @@ -11,7 +11,6 @@ use Drupal\migrate\Exception\RequirementsException; use Drupal\migrate\MigrateExecutable; use Drupal\migrate\Plugin\RequirementsInterface; -use Drupal\migrate_drupal\MigrationConfigurationTrait; use Drupal\migrate_drupal\NodeMigrateType; /** @@ -113,7 +112,7 @@ function migrate_drupal_migration_plugins_alter(array &$definitions) { try { $source_connection = $source_plugin->getDatabase(); - $version = MigrationConfigurationTrait::getLegacyDrupalVersion($source_connection); + $version = NodeMigrateType::getLegacyDrupalVersion($source_connection); } catch (\Exception $e) { \Drupal::messenger() diff --git a/core/modules/system/tests/modules/entity_test/src/Entity/EntityTestMulRevPub.php b/core/modules/system/tests/modules/entity_test/src/Entity/EntityTestMulRevPub.php index 8b8f5d6167e..856b8e8f20c 100644 --- a/core/modules/system/tests/modules/entity_test/src/Entity/EntityTestMulRevPub.php +++ b/core/modules/system/tests/modules/entity_test/src/Entity/EntityTestMulRevPub.php @@ -59,7 +59,7 @@ class EntityTestMulRevPub extends EntityTestMulRev implements EntityPublishedInt * {@inheritdoc} */ public static function baseFieldDefinitions(EntityTypeInterface $entity_type) { - return parent::baseFieldDefinitions($entity_type) + EntityPublishedTrait::publishedBaseFieldDefinitions($entity_type); + return parent::baseFieldDefinitions($entity_type) + static::publishedBaseFieldDefinitions($entity_type); } } diff --git a/core/modules/system/tests/modules/entity_test_revlog/src/Entity/EntityTestMulWithRevisionLogPub.php b/core/modules/system/tests/modules/entity_test_revlog/src/Entity/EntityTestMulWithRevisionLogPub.php index d0198a5c9f2..db97a6eace6 100644 --- a/core/modules/system/tests/modules/entity_test_revlog/src/Entity/EntityTestMulWithRevisionLogPub.php +++ b/core/modules/system/tests/modules/entity_test_revlog/src/Entity/EntityTestMulWithRevisionLogPub.php @@ -41,7 +41,7 @@ class EntityTestMulWithRevisionLogPub extends EntityTestWithRevisionLog implemen * {@inheritdoc} */ public static function baseFieldDefinitions(EntityTypeInterface $entity_type) { - return parent::baseFieldDefinitions($entity_type) + EntityPublishedTrait::publishedBaseFieldDefinitions($entity_type); + return parent::baseFieldDefinitions($entity_type) + static::publishedBaseFieldDefinitions($entity_type); } }