You are here

public function SearchApiTestService::fieldsUpdated in Search API 7

Implements SearchApiServiceInterface::__construct().

The default implementation always returns FALSE.

Overrides SearchApiAbstractService::fieldsUpdated

File

tests/search_api_test.module, line 258
Test functions and classes for testing the Search API.

Class

SearchApiTestService
Test service class.

Code

public function fieldsUpdated(SearchApiIndex $index) {
  $this
    ->checkErrorState();
  return db_query('SELECT COUNT(*) FROM {search_api_test}')
    ->fetchField() > 0;
}