Skip to content

Instantly share code, notes, and snippets.

@thelebster
Created May 14, 2019 05:15
Show Gist options
  • Select an option

  • Save thelebster/cac443ca88d827c1eb75c242fec98ea4 to your computer and use it in GitHub Desktop.

Select an option

Save thelebster/cac443ca88d827c1eb75c242fec98ea4 to your computer and use it in GitHub Desktop.
uuid: b64bbcf2-cdc5-44b4-83ba-06e30147e14a
langcode: en
status: true
dependencies: { }
_core:
default_config_hash: fSI83rg8m1VYFkw66yAv6_J13NxuBWHvke6IGRnXXFs
id: magicana_d7_node_article
class: Drupal\migrate\Plugin\Migration
field_plugin_method: alterFieldWidgetMigration
cck_plugin_method: null
migration_tags:
- 'Drupal 7'
- Content
migration_group: magicana_migrate_drupal_7
label: 'Nodes (Blog post)'
source:
plugin: d7_node
node_type: article
process:
nid:
-
plugin: get
source: tnid
vid:
-
plugin: get
source: vid
langcode:
-
plugin: default_value
source: language
default_value: und
title:
-
plugin: get
source: title
uid:
-
plugin: get
source: node_uid
status:
-
plugin: get
source: status
created:
-
plugin: get
source: created
changed:
-
plugin: get
source: changed
promote:
-
plugin: get
source: promote
sticky:
-
plugin: get
source: sticky
revision_uid:
-
plugin: get
source: revision_uid
revision_log:
-
plugin: get
source: log
revision_timestamp:
-
plugin: get
source: timestamp
body:
-
plugin: path_url_decode
source: body
-
plugin: body_text_content_migration
root_url_regex: 'http[s]?:\/\/(www\.)?magicana\.com'
file_location_regex: sites\/default\/files
append_relative_url: 'https://magicana.com'
subfolder_location: inline-images
create_image_entity: true
source:
- body
- created
- changed
- status
- '@uid'
body/0/format:
-
plugin: default_value
default_value: full_html
field_tags:
-
plugin: sub_process
source: field_tags
process:
target_id: tid
field_blog_post_category:
-
plugin: sub_process
source: field_blog_post_category
process:
target_id: tid
field_teaser_image:
-
plugin: sub_process
source: field_image
process:
target_id: fid
field_content_images:
-
plugin: sub_process
source: field_content_images
process:
target_id: fid
field_embedded_slideshow:
-
plugin: sub_process
source: field_embedded_slideshow
process:
target_id: fid
destination:
plugin: 'entity:node'
default_bundle: article
migration_dependencies:
optional:
- magicana_d7_user
- magicana_d7_file_entity_image
- magicana_d7_file_entity_audio
- magicana_d7_file_entity_file
- magicana_d7_file_entity_video
- magicana_d7_file_entity_video_embed
- magicana_d7_taxonomy_term_blog_category
- magicana_d7_taxonomy_term_categories
- magicana_d7_taxonomy_term_event_categories
- magicana_d7_taxonomy_term_language
- magicana_d7_taxonomy_term_performers
- magicana_d7_taxonomy_term_shows
- magicana_d7_taxonomy_term_tags
- magicana_d7_taxonomy_term_tricks
- magicana_d7_node_slideshow
required: { }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment