Skip to content

Kirby 4.4.1

Snippet::begin()

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

Snippet::begin(?string $file, array $data = [ ]): Kirby\Template\Snippet

Parameters

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

Return type

Kirby\Template\Snippet

Parent class

Kirby\Template\Snippet