Skip to content

Kirby 5.1.2

$assets->intersection()

Returns a Collection with the intersection of the given elements

$assets->intersection(Kirby\Toolkit\Collection $other): Kirby\Plugin\Assets

Parameters

Name Type Default
$otherrequired Kirby\Toolkit\Collection no default value

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\Toolkit\Collection