Skip to content

Kirby 3.9.8

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