
| Current Path : /var/www/html/pallets_old/web/core/modules/tour/tests/fixtures/ |
Linux ift1.ift-informatik.de 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64 |
| Current File : /var/www/html/pallets_old/web/core/modules/tour/tests/fixtures/addTourLegacyConfig.php |
<?php
/**
* @file
* Adds deprecated tour config for testing updates.
*
* @see https://www.drupal.org/node/3022401
*/
use Drupal\Core\Database\Database;
use Drupal\Core\Serialization\Yaml;
$connection = Database::getConnection();
$tour_with_location = Yaml::decode(file_get_contents(__DIR__ . '/legacy_config/tour.tour.tour-test-legacy-location.yml'));
$connection->insert('config')
->fields([
'collection',
'name',
'data',
])
->values([
'collection' => '',
'name' => 'tour.tour.tour-test-legacy-location',
'data' => serialize($tour_with_location),
])
->execute();