Skip to content

Kirby 5.0.4

$layouts->intersection()

Returns a Collection with the intersection of the given elements

$layouts->intersection(Kirby\Toolkit\Collection $other): Kirby\Cms\Layouts

Parameters

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

Return type

Kirby\Cms\Layouts

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

Parent class

Kirby\Cms\Layouts inherited from Kirby\Toolkit\Collection