$field->toData()
Parses the field value with the given method
$field->toData(string $method = ','): arrayParameters
| 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