Skip to content

Commit

Permalink
Merge pull request #62 from slackerzz/fix_issue_61
Browse files Browse the repository at this point in the history
Fix issue #61
  • Loading branch information
slackerzz authored May 26, 2022
2 parents fad5f4a + 0b53787 commit 32e0bcb
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Plugin/View/Element/AbstractBlockPlugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,10 @@ public function aroundToHtml(AbstractBlock $subject, \Closure $proceed)
return $proceed();
}

if ($subject->getTemplate() === null) {
return $proceed();
}

$name = $subject->getNameInLayout();

$this->elementRegistry->start($name);
Expand Down

0 comments on commit 32e0bcb

Please sign in to comment.