Skip to content

Kirby 4.5.0

$api->clone()

Creates a new instance while merging initial and new properties

$api->clone(array $props = [ ]): Kirby\Cms\Api

Parameters

Name Type Default
$props array [ ]

Return type

Kirby\Cms\Api

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

Parent class

Kirby\Cms\Api