Update to Drupal 8.0.0 beta 14. For more information, see https://drupal.org/node/2544542

This commit is contained in:
Pantheon Automation 2015-08-27 12:03:05 -07:00 committed by Greg Anderson
parent 3b2511d96d
commit 81ccda77eb
2155 changed files with 54307 additions and 46870 deletions

View file

@ -0,0 +1,23 @@
uuid: C499B41D-035E-432E-9462-36410C43C49F
langcode: en
status: true
dependencies:
module:
- search
theme:
- bartik
id: secondtestfor2354889
theme: bartik
region: sidebar_first
weight: -6
provider: null
plugin: search_form_block
settings:
id: search_form_block
label: Search
provider: search
label_display: visible
cache:
max_age: -1
status: true
visibility: { }

View file

@ -0,0 +1,51 @@
uuid: 9d204071-a923-4707-8200-c298a540fb0c
langcode: en
status: true
dependencies:
content:
- 'block_content:basic:c1895145-893e-460b-a24e-78cd2cefbb1f'
module:
- block_content
- node
- user
theme:
- bartik
id: testfor2354889
theme: bartik
region: content
weight: -6
provider: null
plugin: 'block_content:c1895145-893e-460b-a24e-78cd2cefbb1f'
settings:
id: 'block_content:c1895145-893e-460b-a24e-78cd2cefbb1f'
label: 'Test for 2354889'
provider: block_content
label_display: visible
cache:
max_age: -1
status: true
info: ''
view_mode: full
visibility:
node_type:
id: node_type
bundles:
page: page
negate: false
context_mapping:
node: node.node
user_role:
id: user_role
roles:
authenticated: authenticated
negate: false
context_mapping:
user: user.current_user
language:
id: language
langcodes:
en: en
de: de
negate: false
context_mapping:
language: language.language_interface

View file

@ -0,0 +1,30 @@
uuid: 4558907D-2918-48FE-B56F-8A007B5FBDD5
langcode: en
status: true
dependencies:
module:
- user
theme:
- bartik
id: thirdtestfor2354889
theme: bartik
region: sidebar_first
weight: -6
provider: null
plugin: user_login_block
settings:
id: user_login_block
label: 'User login'
provider: user
label_display: visible
cache:
max_age: -1
status: true
visibility:
node_type:
id: node_type
bundles:
page: page
negate: false
context_mapping:
baloney: baloney.spam

View file

@ -0,0 +1,53 @@
<?php
/**
* @file
* Contains database additions to drupal-8.bare.standard.php.gz for testing the
* upgrade path of https://www.drupal.org/node/2354889.
*/
use Drupal\Core\Database\Database;
$connection = Database::getConnection();
// A custom block with visibility settings.
$block_configs[] = \Drupal\Component\Serialization\Yaml::decode(file_get_contents(__DIR__ . '/block.block.testfor2354889.yml'));
// A custom block without any visibility settings.
$block_configs[] = \Drupal\Component\Serialization\Yaml::decode(file_get_contents(__DIR__ . '/block.block.secondtestfor2354889.yml'));
// A custom block with visibility settings that contain a non-existing context
// mapping.
$block_configs[] = \Drupal\Component\Serialization\Yaml::decode(file_get_contents(__DIR__ . '/block.block.thirdtestfor2354889.yml'));
foreach ($block_configs as $block_config) {
$connection->insert('config')
->fields(array(
'collection',
'name',
'data',
))
->values(array(
'collection' => '',
'name' => 'block.block.' . $block_config['id'],
'data' => serialize($block_config),
))
->execute();
}
// Update the config entity query "index".
$existing_blocks = $connection->select('key_value')
->fields('key_value', ['value'])
->condition('collection', 'config.entity.key_store.block')
->condition('name', 'theme:bartik')
->execute()
->fetchField();
$existing_blocks = unserialize($existing_blocks);
$connection->update('key_value')
->fields([
'value' => serialize(array_merge($existing_blocks, ['block.block.testfor2354889', 'block.block.secondtestfor2354889', 'block.block.thirdtestfor2354889']))
])
->condition('collection', 'config.entity.key_store.block')
->condition('name', 'theme:bartik')
->execute();