Update to Drupal 8.2.0. For more information, see https://www.drupal.org/project/drupal/releases/8.2.0
This commit is contained in:
parent
2f563ab520
commit
f1c8716f57
1732 changed files with 52334 additions and 11780 deletions
0
core/modules/system/tests/fixtures/IgnoreDirectories/a.txt
vendored
Normal file
0
core/modules/system/tests/fixtures/IgnoreDirectories/a.txt
vendored
Normal file
0
core/modules/system/tests/fixtures/IgnoreDirectories/frontend_framework/b.txt
vendored
Normal file
0
core/modules/system/tests/fixtures/IgnoreDirectories/frontend_framework/b.txt
vendored
Normal file
|
@ -6,8 +6,8 @@
|
|||
* upgrade path of https://www.drupal.org/node/2354889.
|
||||
*/
|
||||
|
||||
use Drupal\Component\Serialization\Yaml;
|
||||
use Drupal\Core\Database\Database;
|
||||
use Drupal\Core\Serialization\Yaml;
|
||||
|
||||
$connection = Database::getConnection();
|
||||
|
||||
|
|
37
core/modules/system/tests/fixtures/update/drupal-8.config-override-fix.php
vendored
Normal file
37
core/modules/system/tests/fixtures/update/drupal-8.config-override-fix.php
vendored
Normal file
|
@ -0,0 +1,37 @@
|
|||
<?php
|
||||
|
||||
/**
|
||||
* @file
|
||||
* Partial database to create broken config overrides.
|
||||
*
|
||||
* @see \Drupal\system\Tests\Update\ConfigOverridesUpdateTest
|
||||
*/
|
||||
|
||||
use Drupal\Core\Database\Database;
|
||||
use Symfony\Component\Yaml\Yaml;
|
||||
|
||||
$connection = Database::getConnection();
|
||||
|
||||
// Install the incorrect override configuration.
|
||||
$configs = [
|
||||
// The view has field titles translated and had an addition field added,
|
||||
// translated and then removed.
|
||||
'views.view.content',
|
||||
// The configuration has a bogus key.
|
||||
'system.cron',
|
||||
];
|
||||
foreach ($configs as $config_name) {
|
||||
$config = Yaml::parse(file_get_contents(__DIR__ . '/es-' . $config_name . '.yml'));
|
||||
$connection->delete('config')
|
||||
->condition('name', $config_name)
|
||||
->condition('collection', 'language.es')
|
||||
->execute();
|
||||
$connection->insert('config')
|
||||
->fields(['data', 'name', 'collection'])
|
||||
->values([
|
||||
'name' => $config_name,
|
||||
'data' => serialize($config),
|
||||
'collection' => 'language.es',
|
||||
])
|
||||
->execute();
|
||||
}
|
|
@ -6,8 +6,8 @@
|
|||
* upgrade path of https://www.drupal.org/node/507488.
|
||||
*/
|
||||
|
||||
use Drupal\Component\Serialization\Yaml;
|
||||
use Drupal\Core\Database\Database;
|
||||
use Drupal\Core\Serialization\Yaml;
|
||||
|
||||
$connection = Database::getConnection();
|
||||
|
||||
|
|
|
@ -6,8 +6,8 @@
|
|||
* upgrade path of https://www.drupal.org/node/2476947.
|
||||
*/
|
||||
|
||||
use Drupal\Component\Serialization\Yaml;
|
||||
use Drupal\Core\Database\Database;
|
||||
use Drupal\Core\Serialization\Yaml;
|
||||
|
||||
$connection = Database::getConnection();
|
||||
|
||||
|
|
|
@ -6,8 +6,8 @@
|
|||
* upgrade path of https://www.drupal.org/node/507488.
|
||||
*/
|
||||
|
||||
use Drupal\Component\Serialization\Yaml;
|
||||
use Drupal\Core\Database\Database;
|
||||
use Drupal\Core\Serialization\Yaml;
|
||||
|
||||
$connection = Database::getConnection();
|
||||
|
||||
|
|
|
@ -6,8 +6,8 @@
|
|||
* upgrade path of https://www.drupal.org/node/2005546.
|
||||
*/
|
||||
|
||||
use Drupal\Component\Serialization\Yaml;
|
||||
use Drupal\Core\Database\Database;
|
||||
use Drupal\Core\Serialization\Yaml;
|
||||
|
||||
$connection = Database::getConnection();
|
||||
|
||||
|
|
|
@ -6,8 +6,8 @@
|
|||
* upgrade path of https://www.drupal.org/node/2455125.
|
||||
*/
|
||||
|
||||
use Drupal\Component\Serialization\Yaml;
|
||||
use Drupal\Core\Database\Database;
|
||||
use Drupal\Core\Serialization\Yaml;
|
||||
|
||||
$connection = Database::getConnection();
|
||||
|
||||
|
@ -17,16 +17,16 @@ $views_configs = [];
|
|||
$views_configs[] = Yaml::decode(file_get_contents(__DIR__ . '/drupal-8.views-entity-views-data-2455125.yml'));
|
||||
|
||||
foreach ($views_configs as $views_config) {
|
||||
$connection->insert('config')
|
||||
->fields(array(
|
||||
$connection->insert('config')
|
||||
->fields(array(
|
||||
'collection',
|
||||
'name',
|
||||
'data',
|
||||
))
|
||||
->values(array(
|
||||
->values(array(
|
||||
'collection' => '',
|
||||
'name' => 'views.view.' . $views_config['id'],
|
||||
'data' => serialize($views_config),
|
||||
))
|
||||
->execute();
|
||||
->execute();
|
||||
}
|
||||
|
|
|
@ -6,8 +6,8 @@
|
|||
* the upgrade path of https://www.drupal.org/node/2649914.
|
||||
*/
|
||||
|
||||
use Drupal\Component\Serialization\Yaml;
|
||||
use Drupal\Core\Database\Database;
|
||||
use Drupal\Core\Serialization\Yaml;
|
||||
|
||||
$connection = Database::getConnection();
|
||||
|
||||
|
|
1
core/modules/system/tests/fixtures/update/es-system.cron.yml
vendored
Normal file
1
core/modules/system/tests/fixtures/update/es-system.cron.yml
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
bogus_key: 'Should be cleaned by system_update_8200'
|
15
core/modules/system/tests/fixtures/update/es-views.view.content.yml
vendored
Normal file
15
core/modules/system/tests/fixtures/update/es-views.view.content.yml
vendored
Normal file
|
@ -0,0 +1,15 @@
|
|||
label: 'Spanish Content'
|
||||
description: 'Spanish Find and manage content.'
|
||||
display:
|
||||
default:
|
||||
display_options:
|
||||
fields:
|
||||
title:
|
||||
label: 'Spanish Title'
|
||||
name:
|
||||
label: 'Spanish Author'
|
||||
nid:
|
||||
label: 'Spanish ID'
|
||||
display_title: 'Spanish Master'
|
||||
page_1:
|
||||
display_title: 'Spanish Page'
|
Reference in a new issue