Skip to content

Kirby 3.7.5

$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