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

Breadcrumb

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

function SearchIndexingInterface::markForReindex

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.

See also

\Drupal\search\SearchIndexInterface::markForReindex()

2 methods override SearchIndexingInterface::markForReindex()
HelpSearch::markForReindex in core/modules/help/src/Plugin/Search/HelpSearch.php
Marks the search index for reindexing for this plugin.
NodeSearch::markForReindex in core/modules/node/src/Plugin/Search/NodeSearch.php
Marks the search index for reindexing for this plugin.

File

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

Class

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

Namespace

Drupal\search\Plugin

Code

public function markForReindex();

API Navigation

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