Updated to Drupal 8.6.4, which is PHP 7.3 friendly. Also updated HTMLaw library....
[yaffs-website] / web / core / modules / block_content / tests / fixtures / update / drupal-8.views_block_content-2976334.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/project/drupal/issues/2976334.
7  */
8
9 use Drupal\Core\Database\Database;
10 use Drupal\Core\Serialization\Yaml;
11
12 $connection = Database::getConnection();
13
14 // Override configuration for 'block_content' View with extra display with with
15 // overridden filters.
16 $config = Yaml::decode(file_get_contents(__DIR__ . '/views.view.block_content_2976334.yml'));
17 $connection->update('config')
18   ->fields([
19     'data' => serialize($config),
20   ])
21   ->condition('name', 'views.view.' . $config['id'])
22   ->execute();