Skip to content

Commit 5dafb74

Browse files
committed
Add modules() method
1 parent 9642d1b commit 5dafb74

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

index.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,11 @@
3838
});
3939
return count($modules) > 0;
4040
},
41+
'modules' => function () {
42+
if ($modules = $this->find('modules')) {
43+
return $modules->children();
44+
}
45+
},
4146
'isModule' => function () {
4247
return Str::startsWith($this->intendedTemplate(), 'module.');
4348
}

0 commit comments

Comments
 (0)