Class

eZ\Publish\Core\REST\Common\Output\FieldTypeSerializer

class FieldTypeSerializer

Serializes FieldType related data for REST output.

Methods

__construct(FieldTypeService $fieldTypeService, FieldTypeProcessorRegistry $fieldTypeProcessorRegistry)

serializeFieldValue(Generator $generator, ContentType $contentType, Field $field)

Serializes the field value of $field through $generator.

serializeFieldDefaultValue(Generator $generator, string $fieldTypeIdentifier, mixed $defaultValue)

Serializes the $defaultValue for $fieldDefIdentifier through $generator.

serializeFieldSettings(Generator $generator, string $fieldTypeIdentifier, mixed $settings)

Serializes $settings as fieldSettings for $fieldDefinition using $generator.

serializeValidatorConfiguration(Generator $generator, string $fieldTypeIdentifier, mixed $validatorConfiguration)

Serializes $validatorConfiguration for $fieldDefinition using $generator.

Details

at line 38
public __construct(FieldTypeService $fieldTypeService, FieldTypeProcessorRegistry $fieldTypeProcessorRegistry)

Parameters

FieldTypeService $fieldTypeService
FieldTypeProcessorRegistry $fieldTypeProcessorRegistry

at line 51
public serializeFieldValue(Generator $generator, ContentType $contentType, Field $field)

Serializes the field value of $field through $generator.

Parameters

Generator $generator
ContentType $contentType
Field $field

at line 70
public serializeFieldDefaultValue(Generator $generator, string $fieldTypeIdentifier, mixed $defaultValue)

Serializes the $defaultValue for $fieldDefIdentifier through $generator.

Parameters

Generator $generator
string $fieldTypeIdentifier
mixed $defaultValue

at line 88
public serializeFieldSettings(Generator $generator, string $fieldTypeIdentifier, mixed $settings)

Serializes $settings as fieldSettings for $fieldDefinition using $generator.

Parameters

Generator $generator
string $fieldTypeIdentifier
mixed $settings

at line 108
public serializeValidatorConfiguration(Generator $generator, string $fieldTypeIdentifier, mixed $validatorConfiguration)

Serializes $validatorConfiguration for $fieldDefinition using $generator.

Parameters

Generator $generator
string $fieldTypeIdentifier
mixed $validatorConfiguration