You are here

public function SearchIndexingInterface::indexClear in Drupal 9

Same name and namespace in other branches
  1. 8 core/modules/search/src/Plugin/SearchIndexingInterface.php \Drupal\search\Plugin\SearchIndexingInterface::indexClear()

Clears the search index for this plugin.

When a request is made to clear all items from the search index related to this plugin, this method will be called. If this plugin uses the default search index, this method can call clear($type) method on the search.index service class to remove indexed items from the search database.

See also

\Drupal\search\SearchIndexInterface::clear()

2 methods override SearchIndexingInterface::indexClear()
HelpSearch::indexClear in core/modules/help_topics/src/Plugin/Search/HelpSearch.php
Clears the search index for this plugin.
NodeSearch::indexClear in core/modules/node/src/Plugin/Search/NodeSearch.php
Clears the search index for this plugin.

File

core/modules/search/src/Plugin/SearchIndexingInterface.php, line 57

Class

SearchIndexingInterface
Defines an optional interface for SearchPlugin objects using an index.

Namespace

Drupal\search\Plugin

Code

public function indexClear();