You are here

public function SearchIndexingInterface::markForReindex in Drupal 9

Same name and namespace in other branches
  1. 8 core/modules/search/src/Plugin/SearchIndexingInterface.php \Drupal\search\Plugin\SearchIndexingInterface::markForReindex()
  2. 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_topics/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\Plugin

Code

public function markForReindex();