You are here

public function BackendSpecificInterface::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.

2 methods override BackendSpecificInterface::updateIndex()
BackendPluginBase::updateIndex in src/Backend/BackendPluginBase.php
Notifies the server that an index attached to it has been changed.
Server::updateIndex in src/Entity/Server.php
Notifies the server that an index attached to it has been changed.

File

src/Backend/BackendSpecificInterface.php, line 138

Class

BackendSpecificInterface
Defines methods common to search servers and backend plugins.

Namespace

Drupal\search_api\Backend

Code

public function updateIndex(IndexInterface $index);