public function SearchService::entityMarkForReindex in Synonyms 8
Same name and namespace in other branches
- 2.0.x modules/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
- synonyms_search/
src/ SynonymsService/ Behavior/ SearchService.php, line 124
Class
- SearchService
- Expose synonyms of referenced entities to core Search index.
Namespace
Drupal\synonyms_search\SynonymsService\BehaviorCode
public function entityMarkForReindex(ContentEntityInterface $entity) {
$this
->entityMarkForReindexMultiple([
$entity
->id(),
], $entity
->getEntityTypeId());
}