Configuration

Below is the full configuration available with defaults values:

"example" => [
    "type"   => "anomaly.field_type.tags",
    "config" => [
        "min"           => null,
        "max"           => null,
        "options"       => [],
        "free_input"    => true,
        "filter"        => null,
        "default_value" => null,
        "handler"       => "Anomaly\TagsFieldType\[email protected]"
    ]
]
Configuration
Key Example Description
min 2 The minimum number of allowed tags.
max 2 The maximum number of allowed tags.
options ["foo", "bar"] An array of available options.
free_input false If enabled tags not defined in available options can be entered.
filter FILTER_VALIDATE_EMAIL A validation filter to apply. Valid options are `FILTER_VALIDATE_EMAIL`, `FILTER_VALIDATE_URL`, and `FILTER_VALIDATE_IP`.
default_value ["foo"] The default value.
handler App\[email protected] The options handler.