class TestCallables in Drupal 9
Same name and namespace in other branches
- 8 core/tests/Drupal/Tests/Core/Render/RendererTest.php \Drupal\Tests\Core\Render\TestCallables
Hierarchy
- class \Drupal\Tests\Core\Render\TestCallables implements TrustedCallbackInterface
Expanded class hierarchy of TestCallables
File
- core/
tests/ Drupal/ Tests/ Core/ Render/ RendererTest.php, line 1062 - Contains \Drupal\Tests\Core\Render\RendererTest.
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',
];
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
TestCallables:: |
public | function | ||
TestCallables:: |
public static | function |
Lists the trusted callbacks provided by the implementing class. Overrides TrustedCallbackInterface:: |
|
TrustedCallbackInterface:: |
constant | Untrusted callbacks throw exceptions. | ||
TrustedCallbackInterface:: |
constant | Untrusted callbacks trigger silenced E_USER_DEPRECATION errors. | ||
TrustedCallbackInterface:: |
constant | Untrusted callbacks trigger E_USER_WARNING errors. |