private function LayoutBuilderTest::markCurrentPage in Drupal 8
Same name and namespace in other branches
- 9 core/modules/layout_builder/tests/src/FunctionalJavascript/LayoutBuilderTest.php \Drupal\Tests\layout_builder\FunctionalJavascript\LayoutBuilderTest::markCurrentPage()
Marks the page to assist determining if the page has been reloaded.
@todo Remove in https://www.drupal.org/project/drupal/issues/2909782.
2 calls to LayoutBuilderTest::markCurrentPage()
- LayoutBuilderTest::testConfigurableLayoutSections in core/
modules/ layout_builder/ tests/ src/ FunctionalJavascript/ LayoutBuilderTest.php - Tests configurable layouts.
- LayoutBuilderTest::testLayoutBuilderUi in core/
modules/ layout_builder/ tests/ src/ FunctionalJavascript/ LayoutBuilderTest.php - Tests the Layout Builder UI.
File
- core/
modules/ layout_builder/ tests/ src/ FunctionalJavascript/ LayoutBuilderTest.php, line 483
Class
- LayoutBuilderTest
- Tests the Layout Builder UI.
Namespace
Drupal\Tests\layout_builder\FunctionalJavascriptCode
private function markCurrentPage() {
$this->pageReloadMarker = $this
->randomMachineName();
$this
->getSession()
->executeScript('document.body.appendChild(document.createTextNode("' . $this->pageReloadMarker . '"));');
}