Skip to content

Kirby 3.5.7.1

$asset->clone()

Creates an instance with the same initial properties.

$asset->clone(array $props = [ ]): Kirby\Cms\Asset

Parameters

Name Type Default
$props array [ ]

Return type

Kirby\Cms\Asset

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

Parent class

Kirby\Cms\Asset