function social_core_update_8904 in Open Social 10.2.x
Same name and namespace in other branches
- 8.9 modules/social_features/social_core/social_core.install \social_core_update_8904()
- 10.3.x modules/social_features/social_core/social_core.install \social_core_update_8904()
- 10.0.x modules/social_features/social_core/social_core.install \social_core_update_8904()
- 10.1.x modules/social_features/social_core/social_core.install \social_core_update_8904()
Update Social Blue theme with new accent text color.
File
- modules/
social_features/ social_core/ social_core.install, line 1254 - Install, update and uninstall functions for the social_core module.
Code
function social_core_update_8904() {
$config = \Drupal::configFactory()
->getEditable('color.theme.socialblue');
if (!empty($config
->getRawData())) {
$socialblue_colors = $config
->getRawData();
$socialblue_colors['palette']['brand-accent-text'] = '#4d4d4d';
$config
->setData($socialblue_colors);
$config
->save();
}
}