You are here

function search_api_search_api_index_update in Search API 8

Same name and namespace in other branches
  1. 7 search_api.module \search_api_search_api_index_update()

Implements hook_ENTITY_TYPE_update() for type "search_api_index".

Implemented on behalf of the "entity" datasource plugin.

See also

\Drupal\search_api\Plugin\search_api\datasource\ContentEntityTrackingManager::indexUpdate()

File

./search_api.module, line 373
Provides a rich framework for creating searches.

Code

function search_api_search_api_index_update(IndexInterface $index) {
  \Drupal::getContainer()
    ->get('search_api.entity_datasource.tracking_manager')
    ->indexUpdate($index);
}