You are here

public function BackendInterface::preUpdate in Search API 8

Notifies the backend that its configuration is about to be updated.

The server's $original property can be used to inspect the old configuration values.

Take care, though, that the server at this point might be override-free and thus contain property values (and apparent changes) which will not actually go into effect. If this might influence the code in this method, you have to manually check for overrides to ensure no incorrect action is taken.

See also

\Drupal\search_api\Utility\Utility::getConfigOverrides()

1 method overrides BackendInterface::preUpdate()
BackendPluginBase::preUpdate in src/Backend/BackendPluginBase.php
Notifies the backend that its configuration is about to be updated.

File

src/Backend/BackendInterface.php, line 62

Class

BackendInterface
Defines an interface for search backend plugins.

Namespace

Drupal\search_api\Backend

Code

public function preUpdate();