Neos.Media/Classes/TypeConverter/ArrayConverter.php
public function getSourceChildPropertiesToBeConverted($source)
    {
        $sourceChildPropertiesToBeConverted = [
            'resource' => $source->getResource()
        ];

        if ($source instanceof AssetVariantInterface) {
            $sourceChildPropertiesToBeConverted['originalAsset'] = $source->getOriginalAsset();
        }
        if ($source instanceof ImageVariant) {
            $sourceChildPropertiesToBeConverted['adjustments'] = $source->getAdjustments();
        }

        return $sourceChildPropertiesToBeConverted;
    }
public function getSourceChildPropertiesToBeConverted($source)
    {
        $sourceChildPropertiesToBeConverted = [
            'resource' => $source->getResource()
        ];

        if ($source instanceof AssetVariantInterface) {
            $sourceChildPropertiesToBeConverted['originalAsset'] = $source->getOriginalAsset();
        }
        if ($source instanceof ImageVariant) {
            $sourceChildPropertiesToBeConverted['adjustments'] = $source->getAdjustments();
        }

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

@param mixed $source
@return array
Return a list of sub - properties inside the source object . The key is the sub - property name and the value is the value of the sub - property .