removed all CT breve ref in config files

This commit is contained in:
2019-02-13 20:34:49 +01:00
parent 639ec659cd
commit 69d7548d98
20 changed files with 49 additions and 29 deletions

View File

@@ -99,7 +99,7 @@ process:
-
plugin: skip_on_empty
method: process
source: linked_breves
source: linked_articles
-
plugin: migration_lookup
migration: d7_node_article

View File

@@ -140,13 +140,13 @@ class D7NodeMateriau extends FieldableEntity {
$row->setSourceProperty('linked_materials', $linked_materials);
//linked breves
$linked_breves = [];
$linked_articles = [];
if(!empty($row->getSourceProperty('field_breve_ref'))){
foreach ($row->getSourceProperty('field_breve_ref') as $key => $value) {
$linked_breves[] = $value['target_id'];
$linked_articles[] = $value['target_id'];
}
}
$row->setSourceProperty('linked_breves', $linked_breves);
$row->setSourceProperty('linked_articles', $linked_articles);
// print_r($row->getSourceProperty('field_identifiant'));
// print_r($row->getSourceProperty('field_reference_materio'));