Method |
Description |
|
__construct ( eZ\Publish\SPI\FieldType\FieldType $fieldType ) |
|
|
fieldSettingsFromHash ( array | hash | scalar | null $fieldSettingsHash ) : mixed |
Converts the given $fieldSettingsHash to field settings of the type. |
|
fieldSettingsToHash ( mixed $fieldSettings ) : array | hash | scalar | null |
Converts the given $fieldSettings to a simple hash format. |
|
fromHash ( mixed $hash ) : mixed |
Converts an $hash to the Value defined by the field type. |
|
getEmptyValue ( ) : mixed |
Returns the fallback default value of field type when no such default
value is provided in the field definition in content types. |
|
getFieldTypeIdentifier ( ) : string |
Returns the field type identifier for this field type. |
|
getName ( $value ) |
|
|
getSettingsSchema ( ) : mixed |
Returns a schema for the settings expected by the FieldType. |
|
getValidatorConfigurationSchema ( ) : mixed |
Returns a schema for the validator configuration expected by the FieldType. |
|
isEmptyValue ( mixed $value ) : boolean |
Returns if the given $value is considered empty by the field type. |
|
isSearchable ( ) : boolean |
Indicates if the field type supports indexing and sort keys for searching. |
|
isSingular ( ) : boolean |
Indicates if the field definition of this type can appear only once in the same ContentType. |
|
onlyEmptyInstance ( ) : boolean |
Indicates if the field definition of this type can be added to a ContentType with Content instances. |
|
toHash ( mixed $value ) : mixed |
Converts a Value to a hash. |
|
validateFieldSettings ( mixed $fieldSettings ) : eZ\Publish\SPI\FieldType\ValidationError[] |
Validates the fieldSettings of a FieldDefinitionCreateStruct or FieldDefinitionUpdateStruct. |
|
validateValidatorConfiguration ( mixed $validatorConfiguration ) : eZ\Publish\SPI\FieldType\ValidationError[] |
Validates the validatorConfiguration of a FieldDefinitionCreateStruct or FieldDefinitionUpdateStruct. |
|
validateValue ( eZ\Publish\API\Repository\Values\ContentType\FieldDefinition $fieldDef, eZ\Publish\SPI\FieldType\Value $value ) : eZ\Publish\SPI\FieldType\ValidationError[] |
Validates a field value based on the validator configuration in the field definition. |
|
validatorConfigurationFromHash ( array | hash | scalar | null $validatorConfigurationHash ) : mixed |
Converts the given $validatorConfigurationHash to a validator
configuration of the type. |
|
validatorConfigurationToHash ( mixed $validatorConfiguration ) : array | hash | scalar | null |
Converts the given $validatorConfiguration to a simple hash format. |
|