You are here

public function SearchApiServiceInterface::preDelete in Search API 7

Notifies this server that it is about to be deleted from the database.

This should execute any necessary cleanup operations.

Note that you shouldn't call the server's save() method, or any methods that might do that, from inside of this method as the server isn't present in the database anymore at this point.

2 methods override SearchApiServiceInterface::preDelete()
SearchApiAbstractService::preDelete in includes/service.inc
Implements SearchApiServiceInterface::__construct().
SearchApiDummyService::preDelete in tests/search_api_test_2.module
Notifies this server that it is about to be deleted from the database.

File

includes/service.inc, line 136
Contains SearchApiServiceInterface and SearchApiAbstractService.

Class

SearchApiServiceInterface
Interface defining the methods search services have to implement.

Code

public function preDelete();