You are here

function synonyms_search_entity_delete in Synonyms 2.0.x

Same name and namespace in other branches
  1. 8 synonyms_search/synonyms_search.module \synonyms_search_entity_delete()

Implements hook_entity_delete().

File

modules/synonyms_search/synonyms_search.module, line 32
Integrates Synonyms with core Search module.

Code

function synonyms_search_entity_delete(EntityInterface $entity) {
  if ($entity instanceof ContentEntityInterface) {
    \Drupal::service('synonyms.behavior.search')
      ->entityMarkForReindex($entity);
  }
}