Update to drupal 8.0.0-rc1. For more information, see https://www.drupal.org/node/2582663

This commit is contained in:
Greg Anderson 2015-10-08 11:40:12 -07:00
parent eb34d130a8
commit f32e58e4b1
8476 changed files with 211648 additions and 170042 deletions

View file

@ -1,12 +1,12 @@
id: d6_block
label: Drupal 6 blocks
label: Blocks
migration_tags:
- Drupal 6
source:
plugin: d6_block
plugin: block
process:
# Drupal 8 does not have a status but it doesn't matter; this is here to
# skip disabled blocks.
# Block status is not a thing in Drupal 8, so this is how we skip over
# disabled blocks.
status:
plugin: skip_on_empty
method: row
@ -50,19 +50,22 @@ process:
2: views_block:who_s_new-block_1
3: views_block:who_s_online-who_s_online_block
-
plugin: d6_block_plugin_id
plugin: block_plugin_id
-
plugin: skip_on_empty
method: row
theme:
plugin: d6_block_theme
plugin: block_theme
source:
- theme
- default_theme
- admin_theme
region:
plugin: d6_block_region
plugin: block_region
source:
- region
- theme
- @theme
- '@theme'
region_map:
left: sidebar_first
right: sidebar_second
@ -74,17 +77,20 @@ process:
label: title
weight: weight
settings:
plugin: d6_block_settings
plugin: block_settings
source:
- @plugin
- '@plugin'
- delta
- settings
visibility:
plugin: d6_block_visibility
plugin: block_visibility
source:
- visibility
- pages
- roles
- visibility
# If the block uses PHP visibility, don't migrate it unless the PHP module
# is enabled.
skip_php: true
destination:
plugin: entity:block
migration_dependencies:

View file

@ -0,0 +1,100 @@
id: d7_block
label: Blocks
migration_tags:
- Drupal 7
source:
plugin: block
process:
# Block status is not a thing in Drupal 8, so this is how we skip over
# disabled blocks.
status:
plugin: skip_on_empty
method: row
source: status
id:
-
plugin: concat
source:
- theme
- module
- delta
delimiter: _
plugin:
-
plugin: static_map
bypass: true
source:
- module
- delta
map:
book:
navigation: book_navigation
comment:
recent: views_block:comments_recent-block_1
forum:
active: forum_active_block
new: forum_new_block
# locale:
# 0: language_block
node:
syndicate: node_syndicate_block
search:
form: search_form_block
statistics:
popular: statistics_popular_block
system:
main: system_main_block
'powered-by': system_powered_by_block
user:
login: user_login_block
# 1: system_menu_block:tools
new: views_block:who_s_new-block_1
online: views_block:who_s_online-who_s_online_block
-
plugin: block_plugin_id
-
plugin: skip_on_empty
method: row
theme:
plugin: block_theme
source:
- theme
- default_theme
- admin_theme
region:
plugin: block_region
source:
- region
- theme
- '@theme'
region_map:
left: sidebar_first
right: sidebar_second
sidebar_first: sidebar_first
sidebar_second: sidebar_second
help: help
header: header
footer: footer
label: title
weight: weight
settings:
plugin: block_settings
source:
- '@plugin'
- delta
- settings
visibility:
plugin: block_visibility
source:
- visibility
- pages
- roles
# If the block uses PHP visibility, don't migrate it unless the PHP module
# is enabled.
skip_php: true
destination:
plugin: entity:block
migration_dependencies:
optional:
- d7_custom_block
- d7_user_role