Skip to content

Kirby 6.0.0

$tabs->append()

Appends an element

$tabs->append(string|Tab ...$args): Tabs

Parameters

Name Type Default
...$args stringorKirby\Blueprint\Tab no default value

Return type

Kirby\Blueprint\Tabs

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

Parent class

Kirby\Blueprint\Tabs inherited from Kirby\Toolkit\Collection

Examples

$collection->append('key', $value);
$collection->append($value);