class TestCallables
Same name and namespace in other branches
- 11.x core/tests/Drupal/Tests/Core/Render/RendererTest.php \Drupal\Tests\Core\Render\TestCallables
Hierarchy
- class \Drupal\Tests\Core\Render\TestCallables extends \Drupal\Core\Security\TrustedCallbackInterface
Expanded class hierarchy of TestCallables
File
-
core/
tests/ Drupal/ Tests/ Core/ Render/ RendererTest.php, line 1068
Namespace
Drupal\Tests\Core\RenderView source
class TestCallables implements TrustedCallbackInterface {
public function preRenderPrinted($elements) {
$elements['#printed'] = TRUE;
return $elements;
}
/**
* {@inheritdoc}
*/
public static function trustedCallbacks() {
return [
'preRenderPrinted',
];
}
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.