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\TagsFieldTypeOptions@handle"
]
]
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 |
|
default_value |
["foo"] |
The default value. |
|
handler |
App\MyTags@handle |
The options handler. |