function social_core_update_8812 in Open Social 10.1.x
Same name and namespace in other branches
- 8.9 modules/social_features/social_core/social_core.install \social_core_update_8812()
- 10.3.x modules/social_features/social_core/social_core.install \social_core_update_8812()
- 10.0.x modules/social_features/social_core/social_core.install \social_core_update_8812()
- 10.2.x modules/social_features/social_core/social_core.install \social_core_update_8812()
Install the Gin theme(as admin) and Install Gin Toolbar.
File
- modules/
social_features/ social_core/ social_core.install, line 1162 - Install, update and uninstall functions for the social_core module.
Code
function social_core_update_8812(&$sandbox) {
// Install Gin Admin Theme.
\Drupal::service('theme_installer')
->install([
'gin',
]);
// Set Gin Admin Theme as admin theme.
\Drupal::configFactory()
->getEditable('system.theme')
->set('admin', 'gin')
->save();
// Install Gin Toolbar module.
\Drupal::service('module_installer')
->install([
'gin_toolbar',
]);
}