Reference

Guide

$kirby->snippet()

Uses the snippet component to create and return a template snippet

$kirby->snippet(string $name, array $data = [ ]): string|null

Parameters

Name Type Default Description
$name string
$data array [ ]

Return type

string|null

Source code

kirby/src/Cms/App.php#L1104