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.
9 use Drupal\Core\Database\Database;
10 use Drupal\Core\Serialization\Yaml;
12 $connection = Database::getConnection();
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')
19 'data' => serialize($config),
21 ->condition('name', 'views.view.' . $config['id'])