migration node materiau: field_location, field_samples

This commit is contained in:
2018-12-18 17:58:35 +01:00
parent 73f521ec9d
commit 0bf437f8d8
17 changed files with 160 additions and 16 deletions

View File

@@ -121,11 +121,20 @@ process:
field_famille: field_famille
field_index: field_identifiant
field_reference: field_reference_materio
# just archives
# : field_localisation
# TODO: need to find an alternative or rebuild the custom module
# : field_location
field_localisation_old: field_localisation
# custom module rebuilded
field_samples:
plugin: iterator
source: field_location
process:
location: location
target_id:
plugin: migration_lookup
migration: d7_taxonomy_term_showroom
source: showroom_tid
no_stub: true
migration_dependencies:
required:

View File

@@ -41,7 +41,7 @@ class SamplesDefaultFormatter extends FormatterBase {
// "<p style="color: #hexcolor">The color code ... #hexcolor</p>".
// See theme_html_tag().
'#type' => 'html_tag',
'#tag' => 'p',
'#tag' => 'span',
'#value' => $this->t('@target : @location', [
'@target' => $term->getName(),
'@location' => $item->location