migration node materiau: field_location, field_samples
This commit is contained in:
parent
73f521ec9d
commit
0bf437f8d8
|
@ -121,11 +121,20 @@ process:
|
||||||
field_famille: field_famille
|
field_famille: field_famille
|
||||||
field_index: field_identifiant
|
field_index: field_identifiant
|
||||||
field_reference: field_reference_materio
|
field_reference: field_reference_materio
|
||||||
|
|
||||||
# just archives
|
# just archives
|
||||||
# : field_localisation
|
field_localisation_old: field_localisation
|
||||||
# TODO: need to find an alternative or rebuild the custom module
|
# custom module rebuilded
|
||||||
# : field_location
|
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:
|
migration_dependencies:
|
||||||
required:
|
required:
|
||||||
|
|
|
@ -41,7 +41,7 @@ class SamplesDefaultFormatter extends FormatterBase {
|
||||||
// "<p style="color: #hexcolor">The color code ... #hexcolor</p>".
|
// "<p style="color: #hexcolor">The color code ... #hexcolor</p>".
|
||||||
// See theme_html_tag().
|
// See theme_html_tag().
|
||||||
'#type' => 'html_tag',
|
'#type' => 'html_tag',
|
||||||
'#tag' => 'p',
|
'#tag' => 'span',
|
||||||
'#value' => $this->t('@target : @location', [
|
'#value' => $this->t('@target : @location', [
|
||||||
'@target' => $term->getName(),
|
'@target' => $term->getName(),
|
||||||
'@location' => $item->location
|
'@location' => $item->location
|
||||||
|
|
|
@ -10,6 +10,7 @@ dependencies:
|
||||||
- field.field.node.materiau.field_index
|
- field.field.node.materiau.field_index
|
||||||
- field.field.node.materiau.field_linked_breves
|
- field.field.node.materiau.field_linked_breves
|
||||||
- field.field.node.materiau.field_linked_materials
|
- field.field.node.materiau.field_linked_materials
|
||||||
|
- field.field.node.materiau.field_localisation_old
|
||||||
- field.field.node.materiau.field_manufacturer
|
- field.field.node.materiau.field_manufacturer
|
||||||
- field.field.node.materiau.field_materiau_images
|
- field.field.node.materiau.field_materiau_images
|
||||||
- field.field.node.materiau.field_memo
|
- field.field.node.materiau.field_memo
|
||||||
|
@ -222,6 +223,14 @@ content:
|
||||||
third_party_settings: { }
|
third_party_settings: { }
|
||||||
type: entity_reference_autocomplete
|
type: entity_reference_autocomplete
|
||||||
region: content
|
region: content
|
||||||
|
field_localisation_old:
|
||||||
|
weight: 35
|
||||||
|
settings:
|
||||||
|
size: 60
|
||||||
|
placeholder: ''
|
||||||
|
third_party_settings: { }
|
||||||
|
type: string_textfield
|
||||||
|
region: content
|
||||||
field_manufacturer:
|
field_manufacturer:
|
||||||
weight: 15
|
weight: 15
|
||||||
settings:
|
settings:
|
||||||
|
|
|
@ -10,6 +10,7 @@ dependencies:
|
||||||
- field.field.node.materiau.field_index
|
- field.field.node.materiau.field_index
|
||||||
- field.field.node.materiau.field_linked_breves
|
- field.field.node.materiau.field_linked_breves
|
||||||
- field.field.node.materiau.field_linked_materials
|
- field.field.node.materiau.field_linked_materials
|
||||||
|
- field.field.node.materiau.field_localisation_old
|
||||||
- field.field.node.materiau.field_manufacturer
|
- field.field.node.materiau.field_manufacturer
|
||||||
- field.field.node.materiau.field_materiau_images
|
- field.field.node.materiau.field_materiau_images
|
||||||
- field.field.node.materiau.field_memo
|
- field.field.node.materiau.field_memo
|
||||||
|
@ -93,6 +94,14 @@ content:
|
||||||
third_party_settings: { }
|
third_party_settings: { }
|
||||||
type: entity_reference_label
|
type: entity_reference_label
|
||||||
region: content
|
region: content
|
||||||
|
field_localisation_old:
|
||||||
|
weight: 119
|
||||||
|
label: above
|
||||||
|
settings:
|
||||||
|
link_to_entity: false
|
||||||
|
third_party_settings: { }
|
||||||
|
type: string
|
||||||
|
region: content
|
||||||
field_manufacturer:
|
field_manufacturer:
|
||||||
weight: 107
|
weight: 107
|
||||||
label: above
|
label: above
|
||||||
|
|
|
@ -0,0 +1,19 @@
|
||||||
|
uuid: 6ad29f3c-c0c7-4c7d-beae-56cc71d7f0b9
|
||||||
|
langcode: en
|
||||||
|
status: true
|
||||||
|
dependencies:
|
||||||
|
config:
|
||||||
|
- field.storage.node.field_localisation_old
|
||||||
|
- node.type.materiau
|
||||||
|
id: node.materiau.field_localisation_old
|
||||||
|
field_name: field_localisation_old
|
||||||
|
entity_type: node
|
||||||
|
bundle: materiau
|
||||||
|
label: 'Localisation OLD'
|
||||||
|
description: ''
|
||||||
|
required: false
|
||||||
|
translatable: false
|
||||||
|
default_value: { }
|
||||||
|
default_value_callback: ''
|
||||||
|
settings: { }
|
||||||
|
field_type: string
|
|
@ -0,0 +1,21 @@
|
||||||
|
uuid: 85069b08-23d9-4b14-b977-fd3eb9d4424c
|
||||||
|
langcode: en
|
||||||
|
status: true
|
||||||
|
dependencies:
|
||||||
|
module:
|
||||||
|
- node
|
||||||
|
id: node.field_localisation_old
|
||||||
|
field_name: field_localisation_old
|
||||||
|
entity_type: node
|
||||||
|
type: string
|
||||||
|
settings:
|
||||||
|
max_length: 255
|
||||||
|
is_ascii: false
|
||||||
|
case_sensitive: false
|
||||||
|
module: core
|
||||||
|
locked: false
|
||||||
|
cardinality: 1
|
||||||
|
translatable: true
|
||||||
|
indexes: { }
|
||||||
|
persist_with_no_fields: false
|
||||||
|
custom_storage: false
|
|
@ -1,4 +1,4 @@
|
||||||
uuid: 417ec5b7-cdec-4df7-bde3-06cf48ce0c6e
|
uuid: abb4744e-3f95-4f7d-bcaa-1abcbe76362c
|
||||||
langcode: en
|
langcode: en
|
||||||
status: true
|
status: true
|
||||||
dependencies: { }
|
dependencies: { }
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
uuid: 55e84e5f-c055-46a0-9b5d-9bcdd1a88040
|
uuid: e81d9af8-ad7b-48e3-9799-206ec382b667
|
||||||
langcode: en
|
langcode: en
|
||||||
status: true
|
status: true
|
||||||
dependencies: { }
|
dependencies: { }
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
uuid: 2e27d7f8-a9af-4d74-835d-01f3145e86c5
|
uuid: 299fed8f-1d90-42b7-9a37-31c501401e7d
|
||||||
langcode: en
|
langcode: en
|
||||||
status: true
|
status: true
|
||||||
dependencies: { }
|
dependencies: { }
|
||||||
_core:
|
_core:
|
||||||
default_config_hash: waCCDN5EkmNAqKfi7oNHtpYnqMRfal_zZrVCValRCM8
|
default_config_hash: vs5StJ5dG_9bb439rn51xG0kg04tLV9Z5x5cin88aRc
|
||||||
id: d7_node_materiau
|
id: d7_node_materiau
|
||||||
class: null
|
class: null
|
||||||
field_plugin_method: null
|
field_plugin_method: null
|
||||||
|
@ -119,6 +119,17 @@ process:
|
||||||
field_famille: field_famille
|
field_famille: field_famille
|
||||||
field_index: field_identifiant
|
field_index: field_identifiant
|
||||||
field_reference: field_reference_materio
|
field_reference: field_reference_materio
|
||||||
|
field_localisation_old: field_localisation
|
||||||
|
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
|
||||||
destination:
|
destination:
|
||||||
plugin: 'entity:node'
|
plugin: 'entity:node'
|
||||||
migration_dependencies:
|
migration_dependencies:
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
uuid: 96cfa88f-d70d-4617-bbf8-ead8262c5579
|
uuid: 856ae171-ca05-45ca-9cb5-459957bc7691
|
||||||
langcode: en
|
langcode: en
|
||||||
status: true
|
status: true
|
||||||
dependencies: { }
|
dependencies: { }
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
uuid: 23aa0f8e-825c-4e48-bb71-c9b021638e87
|
uuid: 5b903bad-d518-463b-aa75-c2bef7563c53
|
||||||
langcode: en
|
langcode: en
|
||||||
status: true
|
status: true
|
||||||
dependencies: { }
|
dependencies: { }
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
uuid: 9ad7f878-a7ae-4efa-8d00-96bf2a472b19
|
uuid: eb31d3b6-d931-464e-9044-9b1f43332bd2
|
||||||
langcode: en
|
langcode: en
|
||||||
status: true
|
status: true
|
||||||
dependencies: { }
|
dependencies: { }
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
uuid: 580e6065-b175-4985-9f9b-6a4a36ab1f75
|
uuid: 91337305-53cc-4191-9dcf-4775c2637c98
|
||||||
langcode: en
|
langcode: en
|
||||||
status: true
|
status: true
|
||||||
dependencies: { }
|
dependencies: { }
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
uuid: 450375ec-780f-49c9-9afd-b63b71828cda
|
uuid: f50a55f5-c2a7-4808-89f3-842c2fbed7db
|
||||||
langcode: en
|
langcode: en
|
||||||
status: true
|
status: true
|
||||||
dependencies: { }
|
dependencies: { }
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
uuid: fd046a7f-6a3e-4787-be4e-6275cdda39fe
|
uuid: b412a3b4-4ec3-4078-8368-53ffb3202853
|
||||||
langcode: en
|
langcode: en
|
||||||
status: true
|
status: true
|
||||||
dependencies: { }
|
dependencies: { }
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
uuid: e678ea2d-f5b3-4b89-9e0a-a7a8b547f3e3
|
uuid: 7f2287af-f8df-4fc7-88c0-a18bbb35ea72
|
||||||
langcode: en
|
langcode: en
|
||||||
status: true
|
status: true
|
||||||
dependencies:
|
dependencies:
|
||||||
|
|
|
@ -13,6 +13,7 @@ dependencies:
|
||||||
- field.storage.node.field_memo
|
- field.storage.node.field_memo
|
||||||
- field.storage.node.field_migration
|
- field.storage.node.field_migration
|
||||||
- field.storage.node.field_reference
|
- field.storage.node.field_reference
|
||||||
|
- field.storage.node.field_samples
|
||||||
- field.storage.node.field_tags
|
- field.storage.node.field_tags
|
||||||
- field.storage.node.field_thesaurus
|
- field.storage.node.field_thesaurus
|
||||||
- field.storage.node.field_visuel
|
- field.storage.node.field_visuel
|
||||||
|
@ -26,6 +27,7 @@ dependencies:
|
||||||
- content_lock
|
- content_lock
|
||||||
- content_translation
|
- content_translation
|
||||||
- image
|
- image
|
||||||
|
- materio_samples
|
||||||
- node
|
- node
|
||||||
- options
|
- options
|
||||||
- pagerer
|
- pagerer
|
||||||
|
@ -1323,6 +1325,68 @@ display:
|
||||||
separator: '<br/>'
|
separator: '<br/>'
|
||||||
field_api_classes: false
|
field_api_classes: false
|
||||||
plugin_id: field
|
plugin_id: field
|
||||||
|
field_samples:
|
||||||
|
id: field_samples
|
||||||
|
table: node__field_samples
|
||||||
|
field: field_samples
|
||||||
|
relationship: none
|
||||||
|
group_type: group
|
||||||
|
admin_label: ''
|
||||||
|
label: Samples
|
||||||
|
exclude: false
|
||||||
|
alter:
|
||||||
|
alter_text: false
|
||||||
|
text: ''
|
||||||
|
make_link: false
|
||||||
|
path: ''
|
||||||
|
absolute: false
|
||||||
|
external: false
|
||||||
|
replace_spaces: false
|
||||||
|
path_case: none
|
||||||
|
trim_whitespace: false
|
||||||
|
alt: ''
|
||||||
|
rel: ''
|
||||||
|
link_class: ''
|
||||||
|
prefix: ''
|
||||||
|
suffix: ''
|
||||||
|
target: ''
|
||||||
|
nl2br: false
|
||||||
|
max_length: 0
|
||||||
|
word_boundary: true
|
||||||
|
ellipsis: true
|
||||||
|
more_link: false
|
||||||
|
more_link_text: ''
|
||||||
|
more_link_path: ''
|
||||||
|
strip_tags: false
|
||||||
|
trim: false
|
||||||
|
preserve_tags: ''
|
||||||
|
html: false
|
||||||
|
element_type: ''
|
||||||
|
element_class: ''
|
||||||
|
element_label_type: ''
|
||||||
|
element_label_class: ''
|
||||||
|
element_label_colon: true
|
||||||
|
element_wrapper_type: ''
|
||||||
|
element_wrapper_class: ''
|
||||||
|
element_default_classes: true
|
||||||
|
empty: ''
|
||||||
|
hide_empty: false
|
||||||
|
empty_zero: false
|
||||||
|
hide_alter_empty: true
|
||||||
|
click_sort_column: location
|
||||||
|
type: materio_samples_default_formatter
|
||||||
|
settings: { }
|
||||||
|
group_column: ''
|
||||||
|
group_columns: { }
|
||||||
|
group_rows: true
|
||||||
|
delta_limit: 0
|
||||||
|
delta_offset: 0
|
||||||
|
delta_reversed: false
|
||||||
|
delta_first_last: false
|
||||||
|
multi_type: separator
|
||||||
|
separator: '<br/>'
|
||||||
|
field_api_classes: false
|
||||||
|
plugin_id: field
|
||||||
field_workflow:
|
field_workflow:
|
||||||
id: field_workflow
|
id: field_workflow
|
||||||
table: node__field_workflow
|
table: node__field_workflow
|
||||||
|
@ -2010,6 +2074,7 @@ display:
|
||||||
- 'config:field.storage.node.field_memo'
|
- 'config:field.storage.node.field_memo'
|
||||||
- 'config:field.storage.node.field_migration'
|
- 'config:field.storage.node.field_migration'
|
||||||
- 'config:field.storage.node.field_reference'
|
- 'config:field.storage.node.field_reference'
|
||||||
|
- 'config:field.storage.node.field_samples'
|
||||||
- 'config:field.storage.node.field_tags'
|
- 'config:field.storage.node.field_tags'
|
||||||
- 'config:field.storage.node.field_thesaurus'
|
- 'config:field.storage.node.field_thesaurus'
|
||||||
- 'config:field.storage.node.field_visuel'
|
- 'config:field.storage.node.field_visuel'
|
||||||
|
@ -2218,6 +2283,7 @@ display:
|
||||||
- 'config:field.storage.node.field_memo'
|
- 'config:field.storage.node.field_memo'
|
||||||
- 'config:field.storage.node.field_migration'
|
- 'config:field.storage.node.field_migration'
|
||||||
- 'config:field.storage.node.field_reference'
|
- 'config:field.storage.node.field_reference'
|
||||||
|
- 'config:field.storage.node.field_samples'
|
||||||
- 'config:field.storage.node.field_tags'
|
- 'config:field.storage.node.field_tags'
|
||||||
- 'config:field.storage.node.field_thesaurus'
|
- 'config:field.storage.node.field_thesaurus'
|
||||||
- 'config:field.storage.node.field_visuel'
|
- 'config:field.storage.node.field_visuel'
|
||||||
|
|
Loading…
Reference in New Issue