public convertFrom ( Neos\Media\Domain\Model\ImageInterface $source, string $targetType, array $convertedChildProperties = [], Neos\Flow\Property\PropertyMappingConfigurationInterface $configuration = null ) : string | ||
$source | Neos\Media\Domain\Model\ImageInterface | |
$targetType | string | must be 'string' |
$convertedChildProperties | array | |
$configuration | Neos\Flow\Property\PropertyMappingConfigurationInterface | |
return | string | The converted ImageInterface |
public function convertFrom($source, $targetType, array $convertedChildProperties = array(), PropertyMappingConfigurationInterface $configuration = null)
{
$data = parent::convertFrom($source, 'array', $convertedChildProperties, $configuration);
return json_encode($data);
}