$snippet->render()
Renders the snippet and passes the scope with all slots and data
$snippet->render(array $data = [], array $slots = []): string
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
| $data | array |
[]
|
|
| $slots | array<string, string|null> |
[]
|
Additional slot contents by name |
Return type
string