protected function IndexChangesTest::getIndexedItems in Search API 8
Retrieves the indexed items from the test backend.
Return value
array The indexed items, keyed by their item IDs and containing associative arrays with their field values.
2 calls to IndexChangesTest::getIndexedItems()
- IndexChangesTest::testDatasourceAdded in tests/
src/ Kernel/ Index/ IndexChangesTest.php - Tests correct reactions when a new datasource is added.
- IndexChangesTest::testDatasourceRemoved in tests/
src/ Kernel/ Index/ IndexChangesTest.php - Tests correct reactions when a datasource is removed.
File
- tests/
src/ Kernel/ Index/ IndexChangesTest.php, line 445
Class
- IndexChangesTest
- Tests correct reactions to changes for the index.
Namespace
Drupal\Tests\search_api\Kernel\IndexCode
protected function getIndexedItems() {
$key = 'search_api_test.backend.indexed.' . $this->index
->id();
return \Drupal::state()
->get($key, []);
}