Property | Type | Description | |
---|---|---|---|
$persistenceManager | Neos\Flow\Persistence\PersistenceManagerInterface | ||
$priority | integer | ||
$sourceTypes | array | ||
$targetType | string |
Method | Description | |
---|---|---|
canConvertFrom ( mixed $source, string $targetType ) : boolean | ||
convertFrom ( Neos\Media\Domain\Model\AssetInterface $source, string $targetType, array $convertedChildProperties = [], Neos\Flow\Property\PropertyMappingConfigurationInterface $configuration = null ) : array | Convert an object from $source to an array | |
getSourceChildPropertiesToBeConverted ( mixed $source ) : array | Return a list of sub-properties inside the source object. | |
getTypeOfChildProperty ( string $targetType, string $propertyName, Neos\Flow\Property\PropertyMappingConfigurationInterface $configuration ) : string | Return the type of a given sub-property inside the $targetType, in this case always "array" |
public convertFrom ( Neos\Media\Domain\Model\AssetInterface $source, string $targetType, array $convertedChildProperties = [], Neos\Flow\Property\PropertyMappingConfigurationInterface $configuration = null ) : array | ||
$source | Neos\Media\Domain\Model\AssetInterface | |
$targetType | string | |
$convertedChildProperties | array | |
$configuration | Neos\Flow\Property\PropertyMappingConfigurationInterface | |
return | array | The converted asset or NULL |
public getSourceChildPropertiesToBeConverted ( mixed $source ) : array | ||
$source | mixed | |
return | array |
public getTypeOfChildProperty ( string $targetType, string $propertyName, Neos\Flow\Property\PropertyMappingConfigurationInterface $configuration ) : string | ||
$targetType | string | is ignored |
$propertyName | string | is ignored |
$configuration | Neos\Flow\Property\PropertyMappingConfigurationInterface | is ignored |
return | string | always "array" |
protected PersistenceManagerInterface,Neos\Flow\Persistence $persistenceManager | ||
return | Neos\Flow\Persistence\PersistenceManagerInterface |