Skip to content

Kirby 5.0.4

$component->key()

Returns a (unique) key that can be used for Vue's :key attribute

$component->key(): string

Return type

string

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

Parent class

Kirby\Panel\Ui\Component