Skip to content

Commit

Permalink
Add modules() method
Browse files Browse the repository at this point in the history
  • Loading branch information
medienbaecker committed Oct 22, 2020
1 parent 9642d1b commit 5dafb74
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions index.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,11 @@
});
return count($modules) > 0;
},
'modules' => function () {
if ($modules = $this->find('modules')) {
return $modules->children();
}
},
'isModule' => function () {
return Str::startsWith($this->intendedTemplate(), 'module.');
}
Expand Down

0 comments on commit 5dafb74

Please sign in to comment.