function LayoutTest::render
Same name in other branches
- 9 core/modules/layout_discovery/tests/src/Kernel/LayoutTest.php \Drupal\Tests\layout_discovery\Kernel\LayoutTest::render()
- 8.9.x core/modules/layout_discovery/tests/src/Kernel/LayoutTest.php \Drupal\Tests\layout_discovery\Kernel\LayoutTest::render()
- 10 core/modules/layout_discovery/tests/src/Kernel/LayoutTest.php \Drupal\Tests\layout_discovery\Kernel\LayoutTest::render()
Overrides KernelTestBase::render
1 call to LayoutTest::render()
- LayoutTest::testRenderLayout in core/
modules/ layout_discovery/ tests/ src/ Kernel/ LayoutTest.php - Tests rendering a layout.
File
-
core/
modules/ layout_discovery/ tests/ src/ Kernel/ LayoutTest.php, line 85
Class
- LayoutTest
- Tests Layout functionality.
Namespace
Drupal\Tests\layout_discovery\KernelCode
protected function render(array &$elements) {
$content = parent::render($elements);
// Strip leading whitespace from every line.
$this->content = preg_replace('/^\\s+/m', '', $content);
return $this->content;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.