PostRequestIndexingTrait.php in Search API 8
Namespace
Drupal\Tests\search_api\KernelFile
tests/src/Kernel/PostRequestIndexingTrait.phpView source
<?php
namespace Drupal\Tests\search_api\Kernel;
/**
* Provides a helper method for triggering post-request indexing.
*/
trait PostRequestIndexingTrait {
/**
* Triggers any post-request indexing operations that were registered.
*/
protected function triggerPostRequestIndexing() {
\Drupal::getContainer()
->get('search_api.post_request_indexing')
->destruct();
}
}
Traits
Name | Description |
---|---|
PostRequestIndexingTrait | Provides a helper method for triggering post-request indexing. |