Toolbar broken after #2513266
>>> [!note] Migrated issue
<!-- Drupal.org comment -->
<!-- Migrated from issue #2600378. -->
Reported by: [willzyx](https://www.drupal.org/user/1043862)
>>>
<p>In #2513266 was introduced a Twig Sandbox policy with whitelisted methods and properties that restrict the functions that can be called in a twig template. </p>
<p>In webprofiler_toolbar.html.twig is called the <code>template.renderblock()</code> function that is not whitelisted and therefore throws the following fatal error:</p>
<p><code>Twig_Sandbox_SecurityError: Calling "renderblock" method on a "__TwigTemplate_144c4de8e62693c72a7377eae5e623e1982a22b2f90a22ae57f381e377399535" object is not allowed in "modules/webprofiler/templates/Profiler/webprofiler_toolbar.html.twig" at line 31. in Drupal\Core\Template\TwigSandboxPolicy->checkMethodAllowed() (line 101 of core/lib/Drupal/Core/Template/TwigSandboxPolicy.php).</code></p>
issue