Skip to content

Kirby 6.0.0

$field->toData()

Parses the field value with the given method

$field->toData(string $method = ','): array

Parameters

Name Type Default Description
$method string ',' [',', 'yaml', 'json']

Return type

array

Parent class

Kirby\Content\Field