You are here

function social_mentions_update_8001 in Open Social 8.3

Same name and namespace in other branches
  1. 8.9 modules/social_features/social_mentions/social_mentions.install \social_mentions_update_8001()
  2. 8.4 modules/social_features/social_mentions/social_mentions.install \social_mentions_update_8001()
  3. 8.5 modules/social_features/social_mentions/social_mentions.install \social_mentions_update_8001()
  4. 8.6 modules/social_features/social_mentions/social_mentions.install \social_mentions_update_8001()
  5. 8.7 modules/social_features/social_mentions/social_mentions.install \social_mentions_update_8001()
  6. 8.8 modules/social_features/social_mentions/social_mentions.install \social_mentions_update_8001()
  7. 10.3.x modules/social_features/social_mentions/social_mentions.install \social_mentions_update_8001()
  8. 10.0.x modules/social_features/social_mentions/social_mentions.install \social_mentions_update_8001()
  9. 10.1.x modules/social_features/social_mentions/social_mentions.install \social_mentions_update_8001()
  10. 10.2.x modules/social_features/social_mentions/social_mentions.install \social_mentions_update_8001()

Set suggestion amount to the default of 8.

File

modules/social_features/social_mentions/social_mentions.install, line 25
Install, update and uninstall functions for the social_mentions module.

Code

function social_mentions_update_8001() {
  $config = \Drupal::configFactory()
    ->getEditable('mentions.settings');
  $config
    ->set('suggestions_amount', 8);
  $config
    ->save();
}