You are here

function _social_profile_set_default_config in Open Social 8.4

Same name and namespace in other branches
  1. 8 modules/social_features/social_profile/social_profile.install \_social_profile_set_default_config()
  2. 8.2 modules/social_features/social_profile/social_profile.install \_social_profile_set_default_config()
  3. 8.3 modules/social_features/social_profile/social_profile.install \_social_profile_set_default_config()
  4. 8.5 modules/social_features/social_profile/social_profile.install \_social_profile_set_default_config()
  5. 8.6 modules/social_features/social_profile/social_profile.install \_social_profile_set_default_config()
  6. 8.7 modules/social_features/social_profile/social_profile.install \_social_profile_set_default_config()

Set default config.

2 calls to _social_profile_set_default_config()
social_profile_install in modules/social_features/social_profile/social_profile.install
Implements hook_install().
social_profile_update_8003 in modules/social_features/social_profile/social_profile.install
Add social_profile.settings config. Update permissions for SM role.

File

modules/social_features/social_profile/social_profile.install, line 153
Install, update and uninstall functions for the social_profile module.

Code

function _social_profile_set_default_config() {
  $config = \Drupal::configFactory()
    ->getEditable('social_profile.settings');
  $config
    ->set('social_profile_show_email', 1);
  $config
    ->save();
}