interface VariantSupportInterface (View source)

An interface which defines that an asset has support for variants

Methods

array
getVariants()

Returns all variants (if any) derived from this asset

AssetVariantInterface|null
getVariant(string $presetIdentifier, string $presetVariantName)

Returns the variant identified by $presetIdentifier and $presetVariantName (if existing)

Details

array getVariants()

Returns all variants (if any) derived from this asset

Return Value

array

AssetVariantInterface|null getVariant(string $presetIdentifier, string $presetVariantName)

Returns the variant identified by $presetIdentifier and $presetVariantName (if existing)

Parameters

string $presetIdentifier
string $presetVariantName

Return Value

AssetVariantInterface|null