public function convertFrom($source, $targetType, array $convertedChildProperties = [], PropertyMappingConfigurationInterface $configuration = null)
    {
        $activationHelper = $this->objectManager->get(ActivationHelper::class);

        $innerConverter = $this->objectManager->get(ImageInterfaceArrayPresenter::class);
        if ($activationHelper->isLegacyBackendEnabled()) {
            // Old UI is active so we need to deliver the JSON as string.
            $innerConverter = $this->objectManager->get(ImageInterfaceJsonSerializer::class);
        }

        return $innerConverter->convertFrom($source, $targetType, $convertedChildProperties, $configuration);
    }
public function convertFrom($source, $targetType, array $convertedChildProperties = [], PropertyMappingConfigurationInterface $configuration = null)
    {
        $activationHelper = $this->objectManager->get(ActivationHelper::class);

        $innerConverter = $this->objectManager->get(ImageInterfaceArrayPresenter::class);
        if ($activationHelper->isLegacyBackendEnabled()) {
            // Old UI is active so we need to deliver the JSON as string.
            $innerConverter = $this->objectManager->get(ImageInterfaceJsonSerializer::class);
        }

        return $innerConverter->convertFrom($source, $targetType, $convertedChildProperties, $configuration);
    }
public function convertFrom ( $ source , $ targetType , array $ convertedChildProperties = [ ] , PropertyMappingConfigurationInterface $ configuration = null ) { $ activationHelper = $ this -> objectManager -> get ( ActivationHelper :: class ) ; $ innerConverter = $ this -> objectManager -> get ( ImageInterfaceArrayPresenter :: class ) ; if ( $ activationHelper -> isLegacyBackendEnabled ( ) ) { // Old UI is active so we need to deliver the JSON as string. $ innerConverter = $ this -> objectManager -> get ( ImageInterfaceJsonSerializer :: class ) ; } return $ innerConverter -> convertFrom ( $ source , $ targetType , $ convertedChildProperties , $ configuration ) ; }
Converts the given source ImageInterface depending on which UI is active.

@param mixed $source
@param string $targetType
@param array $convertedChildProperties
@param PropertyMappingConfigurationInterface|null $configuration
@return mixed|\Neos\Error\Messages\Error|\Neos\Flow\Validation\Error|string
Converts the given source ImageInterface depending on which UI is active .