Class

eZ\Publish\Core\Persistence\Legacy\Content\FieldValue\Converter\RichTextConverter

class RichTextConverter implements Converter

Methods

static RichTextConverter create()

Factory for current class.

toStorageValue(FieldValue $value, StorageFieldValue $storageFieldValue)

Converts data from $value to $storageFieldValue.

toFieldValue(StorageFieldValue $value, FieldValue $fieldValue)

Converts data from $value to $fieldValue.

toStorageFieldDefinition(FieldDefinition $fieldDefinition, StorageFieldDefinition $storageDefinition)

Converts field definition data from $fieldDefinition into $storageFieldDefinition.

toFieldDefinition(StorageFieldDefinition $storageDefinition, FieldDefinition $fieldDefinition)

Converts field definition data from $storageDefinition into $fieldDefinition.

string|false getIndexColumn()

Returns the name of the index column in the attribute table.

Details

at line 29
static public RichTextConverter create()

Factory for current class.

Note: Class should instead be configured as service if it gains dependencies.

Return Value

RichTextConverter

at line 40
public toStorageValue(FieldValue $value, StorageFieldValue $storageFieldValue)

Converts data from $value to $storageFieldValue.

Parameters

FieldValue $value
StorageFieldValue $storageFieldValue

at line 51
public toFieldValue(StorageFieldValue $value, FieldValue $fieldValue)

Converts data from $value to $fieldValue.

Parameters

StorageFieldValue $value
FieldValue $fieldValue

at line 62
public toStorageFieldDefinition(FieldDefinition $fieldDefinition, StorageFieldDefinition $storageDefinition)

Converts field definition data from $fieldDefinition into $storageFieldDefinition.

Parameters

FieldDefinition $fieldDefinition
StorageFieldDefinition $storageDefinition

at line 73
public toFieldDefinition(StorageFieldDefinition $storageDefinition, FieldDefinition $fieldDefinition)

Converts field definition data from $storageDefinition into $fieldDefinition.

Parameters

StorageFieldDefinition $storageDefinition
FieldDefinition $fieldDefinition

at line 87
public string|false getIndexColumn()

Returns the name of the index column in the attribute table.

Returns the name of the index column the datatype uses, which is either "sortkeyint" or "sortkeystring". This column is then used for filtering and sorting for this type.

Return Value

string|false