Skip to content

Kirby 5.0.4

$snippet->slot()

Starts a new slot with the given name

$snippet->slot(string $name = 'default'): Kirby\Template\Slot

Parameters

Name Type Default
$name string 'default'

Return type

Kirby\Template\Slot

This method modifies the existing $snippet object it is applied to and returns it again.

Parent class

Kirby\Template\Snippet