Skip to content

Kirby 4.1.2

$layouts->extend()

Adds all elements to the collection

$layouts->extend(mixed $items): Kirby\Cms\Layouts

Parameters

Name Type Default
$items * mixed

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