AssetVariantGenerator
class AssetVariantGenerator (View source)
Properties
protected AssetService | $assetService | ||
protected array | $variantPresetsConfiguration | ||
protected VariantPreset[] | $variantPresets |
Methods
array
getVariantPresets()
No description
array
array
AssetVariantInterface|null
createVariant(AssetInterface $asset, string $presetIdentifier, string $variantIdentifier)
No description
AssetVariantInterface|null
recreateVariant(AssetInterface $asset, string $presetIdentifier, string $variantIdentifier)
No description
renderVariant(AssetInterface $originalAsset, string $presetIdentifier, Variant $variantConfiguration)
No description
Details
array
getVariantPresets()
No description
array
createVariants(AssetInterface $asset)
No description
array
recreateVariants(AssetInterface $asset)
No description
AssetVariantInterface|null
createVariant(AssetInterface $asset, string $presetIdentifier, string $variantIdentifier)
No description
AssetVariantInterface|null
recreateVariant(AssetInterface $asset, string $presetIdentifier, string $variantIdentifier)
No description
protected AssetVariantInterface
renderVariant(AssetInterface $originalAsset, string $presetIdentifier, Variant $variantConfiguration)
No description
protected AssetVariantInterface
createAssetVariant(AssetInterface $asset)
No description