You are here

function social_core_update_8019 in Open Social 10.0.x

Same name and namespace in other branches
  1. 8.9 modules/social_features/social_core/social_core.install \social_core_update_8019()
  2. 8 modules/social_features/social_core/social_core.install \social_core_update_8019()
  3. 8.2 modules/social_features/social_core/social_core.install \social_core_update_8019()
  4. 8.3 modules/social_features/social_core/social_core.install \social_core_update_8019()
  5. 8.4 modules/social_features/social_core/social_core.install \social_core_update_8019()
  6. 8.5 modules/social_features/social_core/social_core.install \social_core_update_8019()
  7. 8.6 modules/social_features/social_core/social_core.install \social_core_update_8019()
  8. 8.7 modules/social_features/social_core/social_core.install \social_core_update_8019()
  9. 8.8 modules/social_features/social_core/social_core.install \social_core_update_8019()
  10. 10.3.x modules/social_features/social_core/social_core.install \social_core_update_8019()
  11. 10.1.x modules/social_features/social_core/social_core.install \social_core_update_8019()
  12. 10.2.x modules/social_features/social_core/social_core.install \social_core_update_8019()

Install the social_file_private module.

File

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

Code

function social_core_update_8019() {
  $file_private_path_base_path = PrivateStream::basePath();
  if ($file_private_path_base_path !== NULL) {
    $modules = [
      'social_file_private',
    ];
    \Drupal::service('module_installer')
      ->install($modules);
    \Drupal::messenger()
      ->addStatus(t('Installed the social_file_private module. Make sure to read: https://www.drupal.org/docs/8/distributions/open-social/private-files'));
  }
  else {
    \Drupal::messenger()
      ->addWarning(t('Skipped installing the social_file_private module because your Private file system is not set. This could have some security implications. More info: https://www.drupal.org/docs/8/distributions/open-social/private-files'));
  }
}