public function ContentEntityTrackingManager::entityUpdate in Search API 8
Implements hook_entity_update().
Updates the corresponding tracking table entries for each index that tracks this entity.
Also takes care of new or deleted translations.
By setting the $entity->search_api_skip_tracking property to a true-like value before this hook is invoked, you can prevent this behavior and make the Search API ignore this update.
Parameters
\Drupal\Core\Entity\EntityInterface $entity: The updated entity.
See also
File
- src/
Plugin/ search_api/ datasource/ ContentEntityTrackingManager.php, line 101
Class
- ContentEntityTrackingManager
- Provides hook implementations on behalf of the Content Entity datasource.
Namespace
Drupal\search_api\Plugin\search_api\datasourceCode
public function entityUpdate(EntityInterface $entity) {
if ($entity instanceof ContentEntityInterface) {
$this
->trackEntityChange($entity);
}
}