Skip to content

$fieldsets->intersection()

Returns a Collection with the intersection of the given elements

$fieldsets->intersection(\Kirby\Toolkit\Collection $other): Kirby\Cms\Fieldsets

Parameters

Name Type Default
$other * Kirby\Toolkit\Collection

Return type

Kirby\Cms\Fieldsets

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

Parent class

Kirby\Cms\Fieldsets inherited from Kirby\Toolkit\Collection