We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e41eac2 commit 0ab0e46Copy full SHA for 0ab0e46
Helper/Layout.php
@@ -82,7 +82,8 @@ protected function buildLayout(string $parentNode): array
82
$block = $this->layout->getBlock($childName);
83
84
if (is_object($block)) {
85
- $templateFile = $block->getTemplateFile() ? $this->cleanFilename($block->getTemplateFile()) : '';
+ $template = (string) $block->getTemplate();
86
+ $templateFile = $template !== '' ? $this->cleanFilename($block->getTemplateFile($template)) : '';
87
$reflectionClass = new ReflectionClass($block);
88
$layout[$childName]['scope'] = $block->isScopePrivate();
89
$layout[$childName]['classname'] = $this->cleanClassname(get_class($block));
0 commit comments