public function normalizeToTranslationData($entity, $propertyPath, $formData)
    {
        $metadata = $this->metadataCollection->getMetadata($entity);
        $property = $metadata->getProperty($propertyPath);
        $strategy = $this->strategyResolver->getStrategy($property->getStrategy());
        return $strategy->normalizeToTranslationData($entity, $property, $formData, $metadata);
    }
public function normalizeToTranslationData($entity, $propertyPath, $formData)
    {
        $metadata = $this->metadataCollection->getMetadata($entity);
        $property = $metadata->getProperty($propertyPath);
        $strategy = $this->strategyResolver->getStrategy($property->getStrategy());
        return $strategy->normalizeToTranslationData($entity, $property, $formData, $metadata);
    }
public function normalizeToTranslationData ( $ entity , $ propertyPath , $ formData ) { $ metadata = $ this -> metadataCollection -> getMetadata ( $ entity ) ; $ property = $ metadata -> getProperty ( $ propertyPath ) ; $ strategy = $ this -> strategyResolver -> getStrategy ( $ property -> getStrategy ( ) ) ; return $ strategy -> normalizeToTranslationData ( $ entity , $ property , $ formData , $ metadata ) ; }
Normalize the form data. The data that a form contains after submit is a mix of the model data and the translation data.
This function will return only the translation data.

@param $entity
@param $propertyPath
@param $formData
@return mixed
@throws \Exception
Normalize the form data . The data that a form contains after submit is a mix of the model data and the translation data . This function will return only the translation data .