function theme_theme_test_render_element_children in Zircon Profile 8.0
Same name and namespace in other branches
- 8 core/modules/system/tests/modules/theme_test/theme_test.module \theme_theme_test_render_element_children()
Theme function for testing rendering of child elements via drupal_render().
Theme hooks defining a 'render element' add an internal '#render_children' property. When this property is found, drupal_render() avoids calling _theme() on the top-level element to prevent infinite recursion.
Parameters
array $variables: An associative array containing:
- element: An associative array containing the properties of the element.
1 string reference to 'theme_theme_test_render_element_children'
- theme_test_theme in core/
modules/ system/ tests/ modules/ theme_test/ theme_test.module - Implements hook_theme().
1 theme call to theme_theme_test_render_element_children()
- ThemeTest::testDrupalRenderChildren in core/
modules/ system/ src/ Tests/ Theme/ ThemeTest.php - Tests child element rendering for 'render element' theme hooks.
File
- core/
modules/ system/ tests/ modules/ theme_test/ theme_test.module, line 149
Code
function theme_theme_test_render_element_children($variables) {
return drupal_render($variables['element']);
}