Skip to content

Kirby 5.1.1

$blocks->not()

Returns a Collection without the given element(s)

$blocks->not(string|array|object ...$keys): Kirby\Cms\Blocks

Parameters

Name Type Default Description
...$keys stringorarrayorobject no default value any number of keys,
passed as individual arguments

Return type

Kirby\Cms\Blocks

This method does not modify the existing $blocks object but returns a new object with the changes applied. Learn more →

Parent class

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