function social_book_update_8803 in Open Social 10.0.x
Same name and namespace in other branches
- 8.9 modules/social_features/social_book/social_book.install \social_book_update_8803()
- 8.8 modules/social_features/social_book/social_book.install \social_book_update_8803()
- 10.3.x modules/social_features/social_book/social_book.install \social_book_update_8803()
- 10.1.x modules/social_features/social_book/social_book.install \social_book_update_8803()
- 10.2.x modules/social_features/social_book/social_book.install \social_book_update_8803()
Update search all with book pages.
File
- modules/
social_features/ social_book/ social_book.install, line 176 - Install, update and uninstall functions for the social_book module.
Code
function social_book_update_8803() {
// If the search module is enabled trigger updating of the indexes affected
// by the book update in config override.
try {
$index = Index::load('social_all');
if ($index !== NULL && $index
->status()) {
$index
->save();
$index
->clear();
$index
->reindex();
}
} catch (EntityStorageException $e) {
\Drupal::logger('social_book')
->info($e
->getMessage());
}
}