protected function LayoutTest::render in Drupal 10
Same name and namespace in other branches
- 8 core/modules/layout_discovery/tests/src/Kernel/LayoutTest.php \Drupal\Tests\layout_discovery\Kernel\LayoutTest::render()
- 9 core/modules/layout_discovery/tests/src/Kernel/LayoutTest.php \Drupal\Tests\layout_discovery\Kernel\LayoutTest::render()
File
- core/
modules/ layout_discovery/ tests/ src/ Kernel/ LayoutTest.php, line 83
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;
}