Skip to content

Kirby 4.5.0

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