protected function PanelsEverywhereTest::loadSiteTemplate in Panels Everywhere 8.4
Retrieves an un-cached version of the site_template from storage.
Return value
\Drupal\page_manager\PageInterface The site_template.
6 calls to PanelsEverywhereTest::loadSiteTemplate()
- PanelsEverywhereTest::testBlockPlacement in tests/
src/ Functional/ PanelsEverywhereTest.php - Verify that placed blocks actually show up.
- PanelsEverywhereTest::testCallingSiteTemplateConfigurationPath in tests/
src/ Functional/ PanelsEverywhereTest.php - Verify that visiting the path of site_template does not break anything.
- PanelsEverywhereTest::testCustomVariants in tests/
src/ Functional/ PanelsEverywhereTest.php - Verify that multiple variants work.
- PanelsEverywhereTest::testFrontPage in tests/
src/ Functional/ PanelsEverywhereTest.php - Verify the front page still loads while site_template is disabled.
- PanelsEverywhereTest::testMixingRegularAndPanelsEverywherePages in tests/
src/ Functional/ PanelsEverywhereTest.php - Verify that using site_template for only part of the page breaks nothing.
File
- tests/
src/ Functional/ PanelsEverywhereTest.php, line 200
Class
- PanelsEverywhereTest
- Make sure that PE can be enabled.
Namespace
Drupal\Tests\panels_everywhere\FunctionalCode
protected function loadSiteTemplate() {
$this->pageStorage
->resetCache([
'site_template',
]);
$site_template = $this->pageStorage
->load('site_template');
return $site_template;
}