Skip to content

Kirby 6.0.0

Snippet::begin()

Creates and opens a new snippet. This can be used directly in a template or via the snippet() helper with slots: true

Snippet::begin(string|null $file, array $data = []): Snippet

Parameters

Name Type Default
$file stringornull no default value
$data array []

Return type

Kirby\Template\Snippet

Parent class

Kirby\Template\Snippet