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