PHP Class Neos\Media\TypeConverter\ImageInterfaceConverter

Inheritance: extends AssetInterfaceConverter
显示文件 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_oe static_oe property

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

$priority protected_oe property

protected int $priority
return integer

$processingInstructionsConverter protected_oe property

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

$propertyMapper protected_oe property

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

$targetType protected_oe property

protected string $targetType
return string