Created
May 15, 2018 20:11
-
-
Save chriscalip/a0509ea657a56ffba1cec43d6fb7cf6e to your computer and use it in GitHub Desktop.
Supporting data explaining issue Add feature id_mapping for destination plugin table. https://www.drupal.org/project/migrate_plus/issues/2949271
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
id: assetnode2model | |
label: "Asset Nodes to asset model." | |
migration_group: d82tables | |
dependencies: | |
enforced: | |
module: | |
- capacitype_move2aa | |
langcode: en | |
status: true | |
source: | |
plugin: c5ontent_entity:node | |
bundle: asset | |
include_translations: false | |
filter_published: true | |
process: | |
# mapping handled at import function | |
name: 'title/0/value' | |
description: 'description/0/value' | |
created_at: | |
plugin: c5_timestamp_to_datetime | |
source: 'created/0/value' | |
updated_at: | |
plugin: c5_timestamp_to_datetime | |
source: 'changed/0/value' | |
email: 'field_asset_email/0/value' | |
phone: 'field_asset_phone/0/value' | |
url: 'field_asset_website/0/uri' | |
online_resource: | |
- | |
plugin: default_value | |
default_value: [] | |
- | |
plugin: c5_get_asset_online_resource | |
status: | |
plugin: default_value | |
default_value: 1 | |
verified: | |
plugin: c5_reverse_boolean | |
source: 'unverified/0/value' | |
contributors: | |
plugin: c5_get_user_emails | |
source: field_ref_user | |
address: | |
plugin: c5_address4aa | |
source: field_asset_address | |
geoloc: | |
plugin: c5_geoloc4aa | |
source: field_asset_geofield | |
profile: | |
- | |
plugin: default_value | |
default_value: [] | |
- | |
plugin: callback | |
callable: serialize | |
destination: | |
plugin: c5table_asset | |
table_name: assets | |
database_key: aa | |
id_fields: | |
id: | |
type: integer | |
id_fields_map: | |
nid: id | |
fields: | |
id: 'id' | |
name: 'name' | |
description: 'description' | |
email: 'email' | |
phone: 'phone' | |
url: url | |
online_resource: online_resource | |
status: status | |
verified: verified | |
created_at: created_at | |
updated_at: updated_at | |
deleted_at: deleted_at | |
profile: profile | |
address: address | |
geoloc: geoloc | |
contacts: contacts | |
contributors: contributors |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment