Neos\Media\TypeConverter\ArrayConverter::getSourceChildPropertiesToBeConverted PHP Method

getSourceChildPropertiesToBeConverted() public method

The "key" is the sub-property name, and the "value" is the value of the sub-property.
public getSourceChildPropertiesToBeConverted ( mixed $source ) : array
$source mixed
return array
    public function getSourceChildPropertiesToBeConverted($source)
    {
        $sourceChildPropertiesToBeConverted = array('resource' => $source->getResource());
        if ($source instanceof AssetVariantInterface) {
            $sourceChildPropertiesToBeConverted['originalAsset'] = $source->getOriginalAsset();
        }
        if ($source instanceof ImageVariant) {
            $sourceChildPropertiesToBeConverted['adjustments'] = $source->getAdjustments();
        }
        return $sourceChildPropertiesToBeConverted;
    }