You are here

function social_core_update_10105 in Open Social 10.2.x

Same name and namespace in other branches
  1. 10.3.x modules/social_features/social_core/social_core.install \social_core_update_10105()

Add default classic_toolbar of the Gin theme.

File

modules/social_features/social_core/social_core.install, line 1360
Install, update and uninstall functions for the social_core module.

Code

function social_core_update_10105() {
  $config = \Drupal::configFactory()
    ->getEditable('gin.settings');
  if (!empty($config
    ->getRawData())) {
    $gin_config = $config
      ->getRawData();
    $gin_config['classic_toolbar'] = 'vertical';
    $config
      ->setData($gin_config);
    $config
      ->save();
  }
}