new Snippet() Creates a new snippet Full class name: Kirby\Template\Snippet kirby/src/Template/Snippet.php#L78 new Snippet(?string $file, array $data = [ ]) Parameters Name Type Default $file * string|null – $data array [ ] Parent class Kirby\Template\Snippet