Skip to content

Kirby 5.1.2

$assets->not()

Returns a Collection without the given element(s)

$assets->not(string|array|object ...$keys): Kirby\Plugin\Assets

Parameters

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

Return type

Kirby\Plugin\Assets

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

Parent class

Kirby\Plugin\Assets inherited from Kirby\Cms\Collection