/**
* Converts field definition data in $fieldDef into $storageFieldDef.
*
* @param \eZ\Publish\SPI\Persistence\Content\Type\FieldDefinition $fieldDef
* @param \eZ\Publish\Core\Persistence\Legacy\Content\StorageFieldDefinition $storageDef
*/
public function toStorageFieldDefinition(FieldDefinition $fieldDef, StorageFieldDefinition $storageDef)
{
parent::toStorageFieldDefinition($fieldDef, $storageDef);
$storageDef->dataText1 = isset($fieldDef->fieldTypeConstraints->fieldSettings['mediaType']) ? $fieldDef->fieldTypeConstraints->fieldSettings['mediaType'] : MediaType::TYPE_HTML5_VIDEO;
}