function social_mentions_update_8001 in Open Social 8.3
Same name and namespace in other branches
- 8.9 modules/social_features/social_mentions/social_mentions.install \social_mentions_update_8001()
- 8.4 modules/social_features/social_mentions/social_mentions.install \social_mentions_update_8001()
- 8.5 modules/social_features/social_mentions/social_mentions.install \social_mentions_update_8001()
- 8.6 modules/social_features/social_mentions/social_mentions.install \social_mentions_update_8001()
- 8.7 modules/social_features/social_mentions/social_mentions.install \social_mentions_update_8001()
- 8.8 modules/social_features/social_mentions/social_mentions.install \social_mentions_update_8001()
- 10.3.x modules/social_features/social_mentions/social_mentions.install \social_mentions_update_8001()
- 10.0.x modules/social_features/social_mentions/social_mentions.install \social_mentions_update_8001()
- 10.1.x modules/social_features/social_mentions/social_mentions.install \social_mentions_update_8001()
- 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();
}