SilverStripe\Assets\Image_Backend::writeToStore
Write to the given asset store
Signature
public function writeToStore(AssetStore
$assetStore,
string
$filename,
[string
$hash = NULL,
[string
$variant = NULL,
[array
$config = ]]] )
Parameters
$assetStore
—
SilverStripe\Assets\Storage\AssetStore
$filename
—
string
- Name for the resulting file
$hash
—
string
- Hash of original file, if storing a variant.
$variant
—
string
- Name of variant, if storing a variant.
$config
—
array
- Write options. {@see AssetStore}
Returns
- array
- Tuple associative array (Filename, Hash, Variant) Unless storing a variant, the hash
will be calculated from the given data.