Commit 53f6e043 authored by Eric Bremner's avatar Eric Bremner
Browse files

ISTWCMS-5408: adding update hook to enable and set claro as default admin theme

parent 6d481683
......@@ -652,3 +652,12 @@ function uw_sites_all_update_9110(&$sandbox) {
'enabled' => FALSE,
])->save();
}
/**
* Enable claro theme and set it as the default admin theme.
*/
function uw_sites_all_update_9111(&$sandbox) {
\Drupal::service('theme_installer')->install(['claro']);
$config = \Drupal::service('config.factory')->getEditable('system.theme');
$config->set('admin', 'claro')->save();
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment