Skip to content

Instantly share code, notes, and snippets.

@weaver299
Created February 18, 2019 20:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save weaver299/3ce48e1b726415026f6d1ca24901356c to your computer and use it in GitHub Desktop.
Save weaver299/3ce48e1b726415026f6d1ca24901356c to your computer and use it in GitHub Desktop.
id: media_youtube
label: Migrate Youtube Videos
description: Migrate Youtube Videos
migration_group: media
migration_tags:
- Custom
source:
plugin: file_entity
# types:
# - video
scheme:
- "youtube"
constants:
bundle: 'video'
process:
mid: fid
bundle: 'constants/bundle'
langcode:
plugin: default_value
source: language
default_value: "und"
name: filename
uid:
-
plugin: skip_on_empty
method: process
source: uid
-
plugin: migration_lookup
migration: users
status: status
created: created
changed: changed
field_media_video_embed_field:
plugin: youtube
source: rui
destination:
plugin: entity:media
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment