You are here

trait PageTestHelperTrait in Page Manager 8

Provides helpers for Page Manager tests.

Hierarchy

File

src/Tests/PageTestHelperTrait.php, line 13
Contains \Drupal\page_manager\Tests\PageTestHelperTrait.

Namespace

Drupal\page_manager\Tests
View source
trait PageTestHelperTrait {

  // @fixme: Remove this change when https://www.drupal.org/node/2684281 is fixed.

  /**
   * Triggers a router rebuild.
   *
   * The UI would trigger a router rebuild, call it manually for API calls.
   */
  protected function triggerRouterRebuild() {
    $this->container
      ->get('router.builder')
      ->rebuildIfNeeded();
  }

}

Members

Namesort descending Modifiers Type Description Overrides
PageTestHelperTrait::triggerRouterRebuild protected function Triggers a router rebuild.