Skip to content

Kirby 5.1.2

$assets->extend()

Adds all elements to a cloned collection

$assets->extend($items): Kirby\Plugin\Assets

Parameters

Name Type Default
$itemsrequired mixed 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