trait PostRequestIndexingTrait in Search API 8
Provides a helper method for triggering post-request indexing.
Hierarchy
- trait \Drupal\Tests\search_api\Kernel\PostRequestIndexingTrait
4 files declare their use of PostRequestIndexingTrait
- CliTest.php in tests/
src/ Kernel/ System/ CliTest.php - IntegrationTest.php in tests/
src/ Functional/ IntegrationTest.php - LanguageWithFallbackTest.php in tests/
src/ Kernel/ Processor/ LanguageWithFallbackTest.php - ViewsCacheInvalidationTest.php in tests/
src/ Kernel/ Views/ ViewsCacheInvalidationTest.php
File
- tests/
src/ Kernel/ PostRequestIndexingTrait.php, line 8
Namespace
Drupal\Tests\search_api\KernelView source
trait PostRequestIndexingTrait {
/**
* Triggers any post-request indexing operations that were registered.
*/
protected function triggerPostRequestIndexing() {
\Drupal::getContainer()
->get('search_api.post_request_indexing')
->destruct();
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
PostRequestIndexingTrait:: |
protected | function | Triggers any post-request indexing operations that were registered. |