You are here

trait PostRequestIndexingTrait in Search API 8

Provides a helper method for triggering post-request indexing.

Hierarchy

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\Kernel
View 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

Namesort descending Modifiers Type Description Overrides
PostRequestIndexingTrait::triggerPostRequestIndexing protected function Triggers any post-request indexing operations that were registered.