
| Current Path : /var/www/html1/testsite/web/core/modules/system/tests/fixtures/update/ |
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/html1/testsite/web/core/modules/system/tests/fixtures/update/drupal-8.admin_theme_0.php |
<?php
/**
* @file
* Test fixture.
*/
use Drupal\Core\Database\Database;
$connection = Database::getConnection();
$config = unserialize($connection->query("SELECT data FROM {config} where name = :name", [':name' => 'system.theme'])->fetchField());
$config['admin'] = '0';
$connection->update('config')
->fields(['data' => serialize($config)])
->condition('name', 'system.theme')
->execute();