EntityTaxonomyTerm.php in Zircon Profile 8
File
core/modules/taxonomy/src/Plugin/migrate/destination/EntityTaxonomyTerm.php
View source
<?php
namespace Drupal\taxonomy\Plugin\migrate\destination;
use Drupal\migrate\Row;
use Drupal\migrate\Plugin\migrate\destination\EntityContentBase;
class EntityTaxonomyTerm extends EntityContentBase {
protected function getEntity(Row $row, array $old_destination_id_values) {
if ($row
->isStub()) {
$row
->setDestinationProperty('name', $this
->t('Stub name for source tid:') . $row
->getSourceProperty('tid'));
}
return parent::getEntity($row, $old_destination_id_values);
}
}