Updated to Drupal 8.6.4, which is PHP 7.3 friendly. Also updated HTMLaw library....
[yaffs-website] / web / core / modules / system / tests / fixtures / update / drupal-8.stable-base-theme-2575421.php
1 <?php
2
3 /**
4  * @file
5  * Contains database additions to drupal-8.bare.standard.php.gz for testing the
6  * upgrade path of https://www.drupal.org/node/2575421.
7  */
8
9 use Drupal\Core\Database\Database;
10
11 $connection = Database::getConnection();
12
13 // Enable test_stable theme.
14 $extensions = $connection->select('config')
15   ->fields('config', ['data'])
16   ->condition('name', 'core.extension')
17   ->execute()
18   ->fetchField();
19 $extensions = unserialize($extensions);
20 $connection->update('config')
21   ->fields([
22     'data' => serialize(array_merge_recursive($extensions, ['theme' => ['test_stable' => 0]])),
23   ])
24   ->condition('name', 'core.extension')
25   ->execute();