layout-builder-tempstore.php in Drupal 8
Test fixture.
File
core/modules/layout_builder/tests/fixtures/update/layout-builder-tempstore.phpView source
<?php
/**
* @file
* Test fixture.
*/
use Drupal\Core\Database\Database;
// Add the tempstore equivalent of the display set up in
// ../layout-builder-enable.php but with a different layout.
Database::getConnection()
->insert('key_value_expire')
->fields([
'collection',
'name',
'value',
])
->values([
'collection' => 'tempstore.shared.layout_builder.section_storage.overrides',
'name' => 'node.1',
'value' => 'O:8:"stdClass":3:{s:4:"data";a:1:{s:15:"section_storage";O:67:"Drupal\\layout_builder\\Plugin\\SectionStorage\\OverridesSectionStorage":9:{s:10:"