You are here

public function SearchIndexingInterface::indexClear in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 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 search_index_clear($type) to remove indexed items from the search database.

See also

search_index_clear()

1 method overrides SearchIndexingInterface::indexClear()
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 62
Contains \Drupal\search\Plugin\SearchIndexingInterface.

Class

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

Namespace

Drupal\search\Plugin

Code

public function indexClear();