core/lib/Drupal/Core/Template/ThemeRegistryNodeVisitor.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/core/lib/Drupal/Core/Template/ThemeRegistryNodeVisitor.php b/core/lib/Drupal/Core/Template/ThemeRegistryNodeVisitor.php index 5d8ecab..f7c9204 100644 --- a/core/lib/Drupal/Core/Template/ThemeRegistryNodeVisitor.php +++ b/core/lib/Drupal/Core/Template/ThemeRegistryNodeVisitor.php @@ -70,6 +70,7 @@ protected function doEnterNode(\Twig_Node $node, \Twig_Environment $env) { throw new \Twig_Error(sprintf('Template "%s" extends "%s", but no such parent templates exist.', $node->getAttribute('filename'), $parent->getAttribute('value'))); } $node->setNode('parent', $this->getReplacementNode($parent, $candidates)); + debug((string) $node->getNode('parent')); } } elseif ($node instanceof \Twig_Node_Include) { @@ -80,6 +81,7 @@ protected function doEnterNode(\Twig_Node $node, \Twig_Environment $env) { throw new \Twig_Error(sprintf('Template "%s" includes "%s", but no such templates exist.', $node->getAttribute('filename'), $include->getAttribute('value'))); } $node->setNode('expr', $this->getReplacementNode($include, $candidates)); + debug((string) $node->getNode('expr')); } } return $node;