public function TestCallables::preRenderPrinted in Drupal 10
Same name and namespace in other branches
- 8 core/tests/Drupal/Tests/Core/Render/RendererTest.php \Drupal\Tests\Core\Render\TestCallables::preRenderPrinted()
- 9 core/tests/Drupal/Tests/Core/Render/RendererTest.php \Drupal\Tests\Core\Render\TestCallables::preRenderPrinted()
File
- core/
tests/ Drupal/ Tests/ Core/ Render/ RendererTest.php, line 1067 - Contains \Drupal\Tests\Core\Render\RendererTest.
Class
Namespace
Drupal\Tests\Core\RenderCode
public function preRenderPrinted($elements) {
$elements['#printed'] = TRUE;
return $elements;
}