Skip to content

Kirby 6.0.0

$options->remove()

Removes an object

$options->remove(string|Option $key): Options

Parameters

Name Type Default Description
$keyrequired stringorKirby\Option\Option no default value Key or object to remove

Return type

Kirby\Option\Options

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

Parent class

Kirby\Option\Options inherited from Kirby\Cms\Collection