function TestCallables::preRenderPrinted

Same name in other branches
  1. 9 core/tests/Drupal/Tests/Core/Render/RendererTest.php \Drupal\Tests\Core\Render\TestCallables::preRenderPrinted()
  2. 8.9.x core/tests/Drupal/Tests/Core/Render/RendererTest.php \Drupal\Tests\Core\Render\TestCallables::preRenderPrinted()
  3. 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 1097

Class

TestCallables

Namespace

Drupal\Tests\Core\Render

Code

public function preRenderPrinted($elements) {
    $elements['#printed'] = TRUE;
    return $elements;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.