You are here

public function SearchIndexingInterface::indexStatus 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::indexStatus()

Reports the status of indexing.

The core search module only invokes this method on active module plugins. Implementing modules do not need to check whether they are active when calculating their return values.

Return value

array An associative array with the key-value pairs:

  • remaining: The number of items left to index.
  • total: The total number of items to index.
1 method overrides SearchIndexingInterface::indexStatus()
NodeSearch::indexStatus in core/modules/node/src/Plugin/Search/NodeSearch.php
Reports the status of indexing.

File

core/modules/search/src/Plugin/SearchIndexingInterface.php, line 89
Contains \Drupal\search\Plugin\SearchIndexingInterface.

Class

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

Namespace

Drupal\search\Plugin

Code

public function indexStatus();