function social_user_update_8002 in Open Social 10.1.x
Same name and namespace in other branches
- 8.9 modules/social_features/social_user/social_user.install \social_user_update_8002()
- 8 modules/social_features/social_user/social_user.install \social_user_update_8002()
- 8.2 modules/social_features/social_user/social_user.install \social_user_update_8002()
- 8.3 modules/social_features/social_user/social_user.install \social_user_update_8002()
- 8.4 modules/social_features/social_user/social_user.install \social_user_update_8002()
- 8.5 modules/social_features/social_user/social_user.install \social_user_update_8002()
- 8.6 modules/social_features/social_user/social_user.install \social_user_update_8002()
- 8.7 modules/social_features/social_user/social_user.install \social_user_update_8002()
- 8.8 modules/social_features/social_user/social_user.install \social_user_update_8002()
- 10.3.x modules/social_features/social_user/social_user.install \social_user_update_8002()
- 10.0.x modules/social_features/social_user/social_user.install \social_user_update_8002()
- 10.2.x modules/social_features/social_user/social_user.install \social_user_update_8002()
Set default value for displaying navigation icons.
File
- modules/
social_features/ social_user/ social_user.install, line 44 - Install, update and uninstall functions for the social_user module.
Code
function social_user_update_8002() {
/** @var \Drupal\Core\Config\Config|\Drupal\Core\Config\ImmutableConfig $config */
$config = \Drupal::getContainer()
->get('config.factory')
->getEditable('social_user_navigation.settings');
$config
->set('display_social_private_message_icon', TRUE)
->save();
$config
->set('display_my_groups_icon', TRUE)
->save();
}