class AspectRatioFromStringConverter extends ObjectConverter (View source)

This converter transforms to \Neos\Media\Domain\ValueObject\Configuration\AspectRatio objects from string.

Properties

protected array $sourceTypes
protected string $targetType

Methods

AspectRatio|object
convertFrom(mixed $source, string $targetType, array $convertedChildProperties = [], PropertyMappingConfigurationInterface $configuration = null)

Convert From

array
getSourceChildPropertiesToBeConverted(mixed $source)

Convert all properties in the source array

Details

AspectRatio|object convertFrom(mixed $source, string $targetType, array $convertedChildProperties = [], PropertyMappingConfigurationInterface $configuration = null)

Convert From

Parameters

mixed $source
string $targetType
array $convertedChildProperties
PropertyMappingConfigurationInterface $configuration

Return Value

AspectRatio|object

array getSourceChildPropertiesToBeConverted(mixed $source)

Convert all properties in the source array

Parameters

mixed $source

Return Value

array