You are here

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

Overrides BackendInterface::preUpdate

See also

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

1 method overrides BackendPluginBase::preUpdate()
TestBackend::preUpdate in tests/search_api_test/src/Plugin/search_api/backend/TestBackend.php
Notifies the backend that its configuration is about to be updated.

File

src/Backend/BackendPluginBase.php, line 210

Class

BackendPluginBase
Defines a base class for backend plugins.

Namespace

Drupal\search_api\Backend

Code

public function preUpdate() {
}