drupal-8.admin_theme_0.php

Test fixture.

File

core/modules/system/tests/fixtures/update/drupal-8.admin_theme_0.php

View source
<?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();

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.