Skip to content

Kirby 3.6.6

$asset->clone()

Creates an instance with the same initial properties.

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

Parameters

Name Type Default
$props array [ ]

Return type

Kirby\Filesystem\Asset

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

Parent class

Kirby\Filesystem\Asset