Skip to content

Kirby 5.0.4

$structure->extend()

Adds all elements to a cloned collection

$structure->extend($items): Kirby\Cms\Structure

Parameters

Name Type Default
$itemsrequired mixed no default value

Return type

Kirby\Cms\Structure

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

Parent class

Kirby\Cms\Structure inherited from Kirby\Toolkit\Collection