SilverStripe\Assets\ImageManipulation::variantParts
Reverses {@link variantName()}.
The "format" part of a variant name is a method name on the owner of this trait. For legacy reasons, there's no delimiter between this part, and the encoded arguments. This means we have to use a whitelist of "known formats", based on methods available on the class as the "main" user of this trait. This class is commonly decorated with additional manipulation methods through .
Signature
public function variantParts(
$variantName )
Parameters
$variantName
—
Returns
- array|null
- An array of arguments passed to {@link variantName}. The first item is the "format".