You are here

public function AdvancedHelpSearch::markForReindex in Advanced Help 8

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.

Overrides SearchIndexingInterface::markForReindex

See also

\Drupal\search\SearchIndexInterface::markForReindex()

File

src/Plugin/Search/AdvancedHelpSearch.php, line 265

Class

AdvancedHelpSearch
Executes a keyword search for Advanced Help against the {advanced_help} topic pages.

Namespace

Drupal\advanced_help\Plugin\Search

Code

public function markForReindex() {
  if (floatval(\Drupal::VERSION) >= 8.800000000000001) {
    $this->searchIndex
      ->markForReindex($this
      ->getPluginId());
  }
  else {
    search_mark_for_reindex($this
      ->getPluginId());
  }
}