Skip to content

Kirby 4.2.0

$api->clone()

Creates a new instance while merging initial and new properties

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

Parameters

Name Type Default
$props array [ ]

Return type

Kirby\Api\Api

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

Parent class

Kirby\Api\Api