Skip to content

Kirby 3.7.5

$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

Available methods

split (','):
pass any separator to split the value by the given character (default)
yaml:
parses the value as yaml
json:
parses the value as json