Skip to content

Kirby 5.1.2

$slot->name()

Returns the slot name

$slot->name(): string

Return type

string

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

Parent class

Kirby\Template\Slot