You are here

public function BackendPluginBase::updateIndex in Search API 8

Notifies the server that an index attached to it has been changed.

If any user action is necessary as a result of this, the method should set a message to notify the user.

Parameters

\Drupal\search_api\IndexInterface $index: The updated index.

Throws

\Drupal\search_api\SearchApiException Thrown if an error occurred while reacting to the change.

Overrides BackendSpecificInterface::updateIndex

2 methods override BackendPluginBase::updateIndex()
Database::updateIndex in modules/search_api_db/src/Plugin/search_api/backend/Database.php
Notifies the server that an index attached to it has been changed.
TestBackend::updateIndex in tests/search_api_test/src/Plugin/search_api/backend/TestBackend.php
Notifies the server that an index attached to it has been changed.

File

src/Backend/BackendPluginBase.php, line 250

Class

BackendPluginBase
Defines a base class for backend plugins.

Namespace

Drupal\search_api\Backend

Code

public function updateIndex(IndexInterface $index) {
}