Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I've a problem with my d7 to d7 migrate... i've tried to assign a variable like this:
class MigrazioneNodiCategorie extends MigrazioneNodi{
public function __construct(array $arguments){
parent::__construct($arguments);
$this->sourceFields['title_field:language'] = 'titolo';
$this->source = new MigrateSourceSQL($this->query(), $this->sourceFields, NULL, $this->sourceOptions);
$this->addFieldMapping('title_field', 'title_field');
$this->addFieldMapping('title_field:language', 'title_field:language');
but the imported language are IT or random, it doesn't create the correct multi language fields... how can I map this fields correctly?
thanks
Comments
Comment #1
csedax90 CreditAttribution: csedax90 commentedseriously no one knows how to do?
Comment #2
mikeryanSupport for the Entity Translation contrib module is not builtin to either migrate or migrate_d2d - see #2091029: Entity translations are not migrated when using *:language subfields. Destination-side support is proposed in the module itself - see #929402: Add support for migrate module.