trait PageTestHelperTrait in Page Manager 8.4
Provides helpers for Page Manager tests.
Hierarchy
- trait \Drupal\Tests\page_manager\Functional\PageTestHelperTrait
File
- tests/
src/ Functional/ PageTestHelperTrait.php, line 8
Namespace
Drupal\Tests\page_manager\FunctionalView 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
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
PageTestHelperTrait:: |
protected | function | Triggers a router rebuild. |