diff --git a/core/lib/Drupal/Core/Render/Renderer.php b/core/lib/Drupal/Core/Render/Renderer.php index 4bbffc3e70b4c9a79d5bcc452562e7d4a9af7653..503359ef784e40ece8b9cf35e22d3b073e2be8f1 100644 --- a/core/lib/Drupal/Core/Render/Renderer.php +++ b/core/lib/Drupal/Core/Render/Renderer.php @@ -320,9 +320,9 @@ protected function doRender(&$elements, $is_root_call = FALSE) { '#lazy_builder', '#cache', '#create_placeholder', - // These keys are not actually supported, but they are added automatically - // by the Renderer, so we don't crash on them; them being missing when - // their #lazy_builder callback is invoked won't surprise the developer. + // The keys below are not actually supported, but these are added + // automatically by the Renderer. Adding them as though they are + // supported allows us to avoid throwing an exception 100% of the time. '#weight', '#printed' ];