Magento.php in Commerce Migrate 3.0.x
File
modules/magento/src/Plugin/migrate/source/magento2/Magento.php
View source
<?php
namespace Drupal\commerce_migrate_magento\Plugin\migrate\source\magento2;
use Drupal\migrate\Row;
use Drupal\migrate_source_csv\Plugin\migrate\source\CSV;
class Magento extends CSV {
public function prepareRow(Row $row) {
$language = \Drupal::languageManager()
->getDefaultLanguage()
->getId();
$row
->setSourceProperty('destination_default_langcode', $language);
return parent::prepareRow($row);
}
}
Classes
Name |
Description |
Magento |
Gets the destination site default language. |