Skip to content

Kirby 6.0.0

$tabs->remove()

Removes an element from the array by key

$tabs->remove(string $key): Tabs

Parameters

Name Type Default Description
$keyrequired string no default value the name of the key

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