public function PhotosImageSearch::markForReindex in Album Photos 6.0.x
Same name and namespace in other branches
- 8.5 src/Plugin/Search/PhotosImageSearch.php \Drupal\photos\Plugin\Search\PhotosImageSearch::markForReindex()
Marks the search index for reindexing for this plugin.
When a request is made to mark all items from the search index related to this plugin for reindexing, this method will be called. If this plugin uses the default search index, this method can call markForReindex($type) method on the search.index service class to mark the items in the search database for reindexing.
Overrides SearchIndexingInterface::markForReindex
See also
\Drupal\search\SearchIndexInterface::markForReindex()
File
- src/
Plugin/ Search/ PhotosImageSearch.php, line 559
Class
- PhotosImageSearch
- Handles searching for photos_image entities using the Search module index.
Namespace
Drupal\photos\Plugin\SearchCode
public function markForReindex() {
// All PhotosImageSearch pages share a common search index "type" equal to
// the plugin ID.
$this->searchIndex
->markForReindex($this
->getPluginId());
}