Skip to content

Kirby 4.5.0

$body->clone()

Creates a new instance while merging initial and new properties

Deprecated in 4.0.0
$body->clone(array $props = [ ]): Kirby\Email\Body

Parameters

Name Type Default
$props array [ ]

Return type

Kirby\Email\Body

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

Parent class

Kirby\Email\Body