Skip to content

Kirby 3.6.6

$api->clone()

Creates an instance with the same initial 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 inherited from Kirby\Api\Api