drupal-8.views_block_content-2976334.php
Contains database additions to drupal-8.bare.standard.php.gz for testing the upgrade path of https://www.drupal.org/project/drupal/issues/2976334.
File
-
core/
modules/ block_content/ tests/ fixtures/ update/ drupal-8.views_block_content-2976334.php
View source
<?php
/**
* @file
* Contains database additions to drupal-8.bare.standard.php.gz for testing the
* upgrade path of https://www.drupal.org/project/drupal/issues/2976334.
*/
use Drupal\Core\Database\Database;
use Drupal\Core\Serialization\Yaml;
$connection = Database::getConnection();
// Override configuration for 'block_content' View with extra display with with
// overridden filters.
$config = Yaml::decode(file_get_contents(__DIR__ . '/views.view.block_content_2976334.yml'));
$connection->update('config')
->fields([
'data' => serialize($config),
])
->condition('name', 'views.view.' . $config['id'])
->execute();
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.