[validatorsDefinition]
Properties
[validatorsDefinition]
- Option path
- prototypes.<prototypeIdentifier>.validatorsDefinition
- Data type
- array
- Needed by
- Frontend/ Backend (form editor)
- Mandatory
- Yes
- Default value
prototypes: <prototypeIdentifier>: validatorsDefinition: [...]
Copied!- Good to know
- Description
- Array which defines the available serverside validators. Every key within this array is called the
<validatoridentifier>
.
<validatorIdentifier>
- Option path
- prototypes.<prototypeIdentifier>.validatorsDefinition.<validatorIdentifier>
- Data type
- array
- Needed by
- Frontend/ Backend (form editor)
- Mandatory
- Yes
- Default value (for prototype 'standard')
prototypes: standard: NotEmpty: [...] DateTime: [...] Alphanumeric: [...] Text: [...] StringLength: [...] EmailAddress: [...] Integer: [...] Float: [...] NumberRange: [...] RegularExpression: [...] Count: [...] FileSize: [...]
Copied!- Related options
- Good to know
- Description
- This array key identifies a validator. This identifier could be used to attach a validator to a form element.
Common <validatorIdentifier> properties
implementationClassName
- Option path
- prototypes.<prototypeIdentifier>.validatorsDefinition.<validatorIdentifier>.implementationClassName
- Data type
- string
- Needed by
- Frontend
- Mandatory
- Yes
- Default value
- Depends (see concrete validators configuration)
- Good to know
- Description
-
Classname which implements the validator.
options
- Option path
- prototypes.<prototypeIdentifier>.validatorsDefinition.<validatorIdentifier>.options
- Data type
- array
- Needed by
- Frontend/ Backend (form editor)
- Mandatory
- Depends (see concrete validators configuration)
- Default value
- Depends (see concrete validators configuration)
- Good to know
- Description
- Array with validator options.
formEditor
- Option path
- prototypes.<prototypeIdentifier>.validatorsDefinition.<validatorIdentifier>.formEditor
- Data type
- array
- Needed by
- Backend (form editor)
- Mandatory
- Recommended
- Default value
- Depends (see concrete validators configuration)
- Description
- Array with configurations for the
form editor
formeditor.iconIdentifier
- Option path
- prototypes.<prototypeIdentifier>.validatorsDefinition.<validatorIdentifier>.formEditor.iconIdentifier
- Data type
- string
- Needed by
- Backend (form editor)
- Mandatory
- Yes
- Default value
- Depends (see concrete validators configuration)
- Description
-
An icon identifier which must be registered through the
\TYPO3\
. This icon will be shown within the - "Inspector [CollectionElementHeaderEditor]" if the validator is selected.CMS\ Core\ Imaging\ Icon Registry
formeditor.label
- Option path
- prototypes.<prototypeIdentifier>.validatorsDefinition.<validatorIdentifier>.formEditor.label
- Data type
- string
- Needed by
- Backend (form editor)
- Mandatory
- Yes
- Default value
- Depends (see concrete validators configuration)
- Good to know
- Description
-
This label will be shown within the - "Inspector [CollectionElementHeaderEditor]" if the validator is selected.
formeditor.predefinedDefaults
- Option path
- prototypes.<prototypeIdentifier>.validatorsDefinition.<validatorIdentifier>.formEditor.predefinedDefaults
- Data type
- array
- Needed by
- Backend (form editor)
- Mandatory
- No
- Default value
- Depends (see concrete validators configuration)
- Description
-
Defines predefined defaults for validator options which are prefilled, if the validator is added to a form element.