Skip to content

Commit

Permalink
Merge branch 'hotfix/54'
Browse files Browse the repository at this point in the history
Close #54
  • Loading branch information
michalbundyra committed Aug 25, 2020
2 parents 9512a19 + 5a85541 commit 7332e80
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions docs/book/cookbook/setting-module-specific-layouts.md
Expand Up @@ -77,6 +77,11 @@ class LayoutListener extends AbstractListenerAggregate
// Get root view model
$layoutViewModel = $event->getViewModel();

// Rendering without layout?
if ($layoutViewModel->terminate()) {
return;
}

// Change template
$layoutViewModel->setTemplate($name);
}
Expand Down

0 comments on commit 7332e80

Please sign in to comment.