social_geolocation-8.x-1.2/modules/social_geolocation_search/social_geolocation_search.install
modules/social_geolocation_search/social_geolocation_search.install
<?php
/**
* @file
* Installation hook implementations for the Social Geolocation Search module.
*/
use Drupal\search_api\Entity\Index;
/**
* Implements hook_install().
*/
function social_geolocation_search_install(): void {
$indexes = Index::loadMultiple([
'social_users',
'social_groups',
'social_content',
'social_all',
]);
// Ensure that configuration overrides are properly applied to the indexes.
// Also see social_tagging.install.
foreach ($indexes as $index) {
// Simply saving the index will trigger a reprocessing of all fields.
$index->save();
}
}
