$duplicateException->toArray()
Converts the object to an array
$duplicateException->toArray(): array
Return type
array
This method modifies the existing $duplicateexception
object it is applied to and returns it again.
Parent class
Kirby\Exception\DuplicateException
inherited from Kirby\Exception\Exception