mirror of
https://github.com/getgrav/grav.git
synced 2026-09-09 03:18:51 +02:00
$page->content() fires the onPageContentRaw event. A plugin handler for this event might want to update the twig variable with additional information during twig rendering. However, $twig_vars takes a copy of $Twig->twig_vars and therefore never sees any later changes in $Twig->twig_vars. By moving the method call $page->content() earlier, potential twig variable changes from a plugin get now inside this local variable copy.