X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs-website;a=blobdiff_plain;f=web%2Fcore%2Fmodules%2Fsystem%2Fmigrations%2Fd7_theme_settings.yml;fp=web%2Fcore%2Fmodules%2Fsystem%2Fmigrations%2Fd7_theme_settings.yml;h=ad789fae8a9f4cb5a888529512f5c05bdd822e9b;hp=0000000000000000000000000000000000000000;hb=af6d1fb995500ae68849458ee10d66abbdcfb252;hpb=680c79a86e3ed402f263faeac92e89fb6d9edcc0 diff --git a/web/core/modules/system/migrations/d7_theme_settings.yml b/web/core/modules/system/migrations/d7_theme_settings.yml new file mode 100644 index 000000000..ad789fae8 --- /dev/null +++ b/web/core/modules/system/migrations/d7_theme_settings.yml @@ -0,0 +1,45 @@ +id: d7_theme_settings +label: D7 theme settings +migration_tags: + - Drupal 7 + - Configuration +source: + plugin: d7_theme_settings + constants: + config_suffix: '.settings' +process: + # Build the configuration name from the variable name, i.e. + # theme_bartik_settings becomes bartik.settings. + theme_name: + - + plugin: explode + source: name + delimiter: _ + - + plugin: extract + index: + - 1 + configuration_name: + plugin: concat + source: + - '@theme_name' + - constants/config_suffix + toggle_logo: theme_settings/toggle_logo + toggle_name: value/toggle_name + toggle_slogan: value/toggle_slogan + toggle_node_user_picture: value/toggle_node_user_picture + toggle_comment_user_picture: value/toggle_comment_user_picture + toggle_comment_user_verification: value/toggle_comment_user_verification + toggle_favicon: value/toggle_favicon + default_logo: value/default_logo + logo_path: value/logo_path + logo_upload: value/logo_upload + default_favicon: value/default_favicon + favicon_path: value/favicon_path + favicon_mimetype: value/favicon_mimetype +# Ignore settings not present in Drupal 8. +# value/favicon_upload +# value/toggle_main_menu +# value/toggle_secondary_menu +destination: + plugin: d7_theme_settings