PHP Class Neos\Media\TypeConverter\ImageInterfaceConverter

Inheritance: extends AssetInterfaceConverter
Show file Open project: neos/neos-development-collection Class Usage Examples

Protected Properties

Property Type Description
$defaultNewAssetType string If creating a new asset from this converter this defines the default type as fallback.
$priority integer
$processingInstructionsConverter ProcessingInstructionsConverter
$propertyMapper Neos\Flow\Property\PropertyMapper
$targetType string

Public Methods

Method Description
getSourceChildPropertiesToBeConverted ( mixed $source ) : array All properties in the source array except __identity are sub-properties.

Protected Methods

Method Description
applyTypeSpecificHandling ( Neos\Media\Domain\Model\ImageInterface $asset, mixed $source, array $convertedChildProperties, Neos\Flow\Property\PropertyMappingConfigurationInterface $configuration ) : Neos\Media\Domain\Model\ImageInterface | null Converts and adds ImageAdjustments to the ImageVariant

Method Details

applyTypeSpecificHandling() protected method

Converts and adds ImageAdjustments to the ImageVariant
protected applyTypeSpecificHandling ( Neos\Media\Domain\Model\ImageInterface $asset, mixed $source, array $convertedChildProperties, Neos\Flow\Property\PropertyMappingConfigurationInterface $configuration ) : Neos\Media\Domain\Model\ImageInterface | null
$asset Neos\Media\Domain\Model\ImageInterface
$source mixed
$convertedChildProperties array
$configuration Neos\Flow\Property\PropertyMappingConfigurationInterface
return Neos\Media\Domain\Model\ImageInterface | null

getSourceChildPropertiesToBeConverted() public method

All properties in the source array except __identity are sub-properties.
public getSourceChildPropertiesToBeConverted ( mixed $source ) : array
$source mixed
return array

Property Details

$defaultNewAssetType protected static property

If creating a new asset from this converter this defines the default type as fallback.
protected static string $defaultNewAssetType
return string

$priority protected property

protected int $priority
return integer

$processingInstructionsConverter protected property

protected ProcessingInstructionsConverter,Neos\Media\TypeConverter $processingInstructionsConverter
return ProcessingInstructionsConverter

$propertyMapper protected property

protected PropertyMapper,Neos\Flow\Property $propertyMapper
return Neos\Flow\Property\PropertyMapper

$targetType protected property

protected string $targetType
return string