function search_api_sorts_search_api_index_update in Search API sorts 8
Implements hook_ENTITY_TYPE_update().
When an search api index is updated, check if there are related sort fields that should be removed.
File
- ./
search_api_sorts.module, line 75 - Create sort options for search queries executed via the Search API.
Code
function search_api_sorts_search_api_index_update(IndexInterface $index) {
\Drupal::service('search_api_sorts.manager')
->cleanupSortFields($index);
}