Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. SearchIndexingInterface.php

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

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal