drupal_render() should check if it's rendering a 'render element' and if so call drupal_render_children() (inline) instead

Created on 19 February 2013, almost 12 years ago
Updated 20 April 2024, 8 months ago

We are recommending not to call drupal_render() in preprocess, now formally documented here: http://drupal.org/node/1920746

Per #1898432-20: node.module - Convert PHPTemplate templates to Twig , the same should be true of drupal_render_children().

drupal_render_children should be implicit when something is printed using twig, so that we don't have to do it in preprocess.

📌 Task
Status

Closed: duplicate

Version

8.1 ⚰️

Component
Theme 

Last updated about 3 hours ago

Created by

🇨🇦Canada star-szr

Live updates comments and jobs are added and updated live.
  • Needs issue summary update

    Issue summaries save everyone time if they are kept up-to-date. See Update issue summary task instructions.

  • Needs tests

    The change is currently missing an automated test that fails when run with the original code, and succeeds when the bug has been fixed.

Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024