diff --git a/core/modules/migrate/src/Plugin/migrate/destination/EntityTaxonomyTerm.php b/core/modules/migrate/src/Plugin/migrate/destination/EntityTaxonomyTerm.php index 38b818a..80384ba 100644 --- a/core/modules/migrate/src/Plugin/migrate/destination/EntityTaxonomyTerm.php +++ b/core/modules/migrate/src/Plugin/migrate/destination/EntityTaxonomyTerm.php @@ -7,13 +7,7 @@ namespace Drupal\migrate\Plugin\migrate\destination; -use Drupal\Core\Entity\EntityManagerInterface; -use Drupal\Core\Entity\EntityStorageInterface; -use Drupal\Core\State\StateInterface; -use Drupal\migrate\Entity\MigrationInterface; -use Drupal\migrate\Plugin\MigratePluginManager; use Drupal\migrate\Row; -use Symfony\Component\DependencyInjection\ContainerInterface; /** * @MigrateDestination( @@ -27,8 +21,9 @@ class EntityTaxonomyTerm extends EntityContentBase { */ protected function getEntity(Row $row, array $old_destination_id_values) { if ($row->stub()) { - $row->setDestinationProperty('name', 'Stub name for source tid ' . $row->getSourceProperty('tid')); + $row->setDestinationProperty('name', $this->t('Stub name for source tid:') . $row->getSourceProperty('tid')); } return parent::getEntity($row, $old_destination_id_values); } + }