Skip to content

Kirby 4.4.1

new Snippet()

Creates a new snippet

new Snippet(?string $file, array $data = [ ])

Parameters

Name Type Default
$file * string|null
$data array [ ]

Parent class

Kirby\Template\Snippet