You are here

public function SearchService::entityMarkForReindex in Synonyms 2.0.x

Same name and namespace in other branches
  1. 8 synonyms_search/src/SynonymsService/Behavior/SearchService.php \Drupal\synonyms_search\SynonymsService\Behavior\SearchService::entityMarkForReindex()

Mark all search index dependent on a given entity for reindexing.

Parameters

\Drupal\Core\Entity\ContentEntityInterface $entity: Entity whose dependent search index should be marked for reindexing.

File

modules/synonyms_search/src/SynonymsService/Behavior/SearchService.php, line 133

Class

SearchService
Expose synonyms of referenced entities to core Search index.

Namespace

Drupal\synonyms_search\SynonymsService\Behavior

Code

public function entityMarkForReindex(ContentEntityInterface $entity) {
  $this
    ->entityMarkForReindexMultiple([
    $entity
      ->id(),
  ], $entity
    ->getEntityTypeId());
}