function SearchIndexingInterface::markForReindex
Same name in other branches
- 9 core/modules/search/src/Plugin/SearchIndexingInterface.php \Drupal\search\Plugin\SearchIndexingInterface::markForReindex()
- 8.9.x core/modules/search/src/Plugin/SearchIndexingInterface.php \Drupal\search\Plugin\SearchIndexingInterface::markForReindex()
- 10 core/modules/search/src/Plugin/SearchIndexingInterface.php \Drupal\search\Plugin\SearchIndexingInterface::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.
See also
\Drupal\search\SearchIndexInterface::markForReindex()
2 methods override SearchIndexingInterface::markForReindex()
- HelpSearch::markForReindex in core/
modules/ help/ src/ Plugin/ Search/ HelpSearch.php - Marks the search index for reindexing for this plugin.
- NodeSearch::markForReindex in core/
modules/ node/ src/ Plugin/ Search/ NodeSearch.php - Marks the search index for reindexing for this plugin.
File
-
core/
modules/ search/ src/ Plugin/ SearchIndexingInterface.php, line 70
Class
- SearchIndexingInterface
- Defines an optional interface for SearchPlugin objects using an index.
Namespace
Drupal\search\PluginCode
public function markForReindex();
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.