You are here

trait PostRequestTrackingTrait in Entity Usage 8.3

Provides a helper method for triggering post-request tracking.

Hierarchy

7 files declare their use of PostRequestTrackingTrait
ConfigurationFormTest.php in tests/src/FunctionalJavascript/ConfigurationFormTest.php
DynamicEntityReferenceTest.php in tests/src/FunctionalJavascript/DynamicEntityReferenceTest.php
EmbeddedContentTest.php in tests/src/FunctionalJavascript/EmbeddedContentTest.php
IntegrationTest.php in tests/src/FunctionalJavascript/IntegrationTest.php
ListControllerTest.php in tests/src/FunctionalJavascript/ListControllerTest.php

... See full list

File

tests/src/Traits/PostRequestTrackingTrait.php, line 8

Namespace

Drupal\Tests\entity_usage\Traits
View source
trait PostRequestTrackingTrait {

  /**
   * Triggers any post-request tracking operations that were registered.
   */
  protected function triggerPostRequestTracking() {
    \Drupal::getContainer()
      ->get('entity_usage.entity_update_manager')
      ->destruct();
  }

}

Members

Namesort descending Modifiers Type Description Overrides
PostRequestTrackingTrait::triggerPostRequestTracking protected function Triggers any post-request tracking operations that were registered.