Skip to content

Kirby 6.0.0

$blocks->remove()

Removes an object

$blocks->remove(string|Block $key): Blocks

Parameters

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

Return type

Kirby\Cms\Blocks

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

Parent class

Kirby\Cms\Blocks inherited from Kirby\Cms\Collection