Skip to content

Instantly share code, notes, and snippets.

@heddn
Created April 19, 2016 16:58
Show Gist options
  • Save heddn/15d4800a1e51bf825b3f14c892475ea6 to your computer and use it in GitHub Desktop.
Save heddn/15d4800a1e51bf825b3f14c892475ea6 to your computer and use it in GitHub Desktop.
id: d6_field
migration_tags:
- 'Drupal 6'
label: 'Field configuration'
source:
plugin: d6_field
constants:
entity_type: node
langcode: en
database_state_key: migrate_upgrade_6
process:
entity_type:
-
plugin: get
source: constants/entity_type
status:
-
plugin: get
source: active
langcode:
-
plugin: get
source: constants/langcode
field_name:
-
plugin: get
source: field_name
type:
-
plugin: field_type
source:
- type
- widget_type
map:
number_integer:
number: integer
optionwidgets_select: list_integer
optionwidgets_buttons: list_integer
optionwidgets_onoff: boolean
number_decimal:
number: decimal
optionwidgets_select: list_float
optionwidgets_buttons: list_float
optionwidgets_onoff: boolean
number_float:
number: float
optionwidgets_select: list_float
optionwidgets_buttons: list_float
optionwidgets_onoff: boolean
email:
email_textfield: email
filefield:
imagefield_widget: image
filefield_widget: file
filefield: filefield
date:
date_select: datetime
datestamp:
date_select: datetime
datetime:
date_select: datetime
fr_phone:
phone_textfield: telephone
be_phone:
phone_textfield: telephone
it_phone:
phone_textfield: telephone
el_phone:
phone_textfield: telephone
ch_phone:
phone_textfield: telephone
ca_phone:
phone_textfield: telephone
cr_phone:
phone_textfield: telephone
pa_phone:
phone_textfield: telephone
gb_phone:
phone_textfield: telephone
ru_phone:
phone_textfield: telephone
ua_phone:
phone_textfield: telephone
es_phone:
phone_textfield: telephone
au_phone:
phone_textfield: telephone
cs_phone:
phone_textfield: telephone
hu_phone:
phone_textfield: telephone
pl_phone:
phone_textfield: telephone
nl_phone:
phone_textfield: telephone
se_phone:
phone_textfield: telephone
za_phone:
phone_textfield: telephone
il_phone:
phone_textfield: telephone
nz_phone:
phone_textfield: telephone
br_phone:
phone_textfield: telephone
cl_phone:
phone_textfield: telephone
cn_phone:
phone_textfield: telephone
hk_phone:
phone_textfield: telephone
mo_phone:
phone_textfield: telephone
ph_phone:
phone_textfield: telephone
sg_phone:
phone_textfield: telephone
jo_phone:
phone_textfield: telephone
eg_phone:
phone_textfield: telephone
pk_phone:
phone_textfield: telephone
int_phone:
phone_textfield: telephone
text:
text: text
emvideo:
emvideo_textfields: video_embed_field
-
plugin: skip_on_empty
method: row
cardinality:
-
plugin: static_map
bypass: true
source: multiple
map:
- 1
- -1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment