function common_test_drupal_render_printing_pre_render
Same name in other branches
- 9 core/modules/system/tests/modules/common_test/common_test.module \common_test_drupal_render_printing_pre_render()
- 8.9.x core/modules/system/tests/modules/common_test/common_test.module \common_test_drupal_render_printing_pre_render()
Applies #printed to an element to help test #pre_render.
1 string reference to 'common_test_drupal_render_printing_pre_render'
- DrupalRenderTestCase::testDrupalRenderBasics in modules/
simpletest/ tests/ common.test - Tests the output drupal_render() for some elementary input values.
File
-
modules/
simpletest/ tests/ common_test.module, line 124
Code
function common_test_drupal_render_printing_pre_render($elements) {
$elements['#printed'] = TRUE;
return $elements;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.