Snippet::factory()
Returns either an open snippet capturing slots or the template string for self-enclosed snippets
Parameters
Name | Type | Default |
---|---|---|
$name * | array |string |null |
– |
$data | array |
[ ] |
$slots | bool |
false |
Return type
Kirby\Template\Snippet
|string