$kirby->snippet()
Uses the snippet component to create and return a template snippet
Parameters
Name | Type | Default | Description |
---|---|---|---|
$name * | mixed |
– | |
$data | array |object |
[ ] |
Variables or an object that becomes $item |
$return | bool |
true |
On false , directly echo the snippet |
Return type
string
|null