You are here

function common_test_drupal_render_printing_pre_render in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 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.

File

core/modules/system/tests/modules/common_test/common_test.module, line 13
Helper module for the Common tests.

Code

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