You are here

public function SearchIndexingInterface::indexClear in Drupal 10

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

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();