SilverStripe\Assets\InterventionBackend::createCloneWithResource
Modify this image backend with either a provided resource, or transformation
Signature
protected function createCloneWithResource(InterventionImage|callable
$resourceOrTransformation )
Parameters
$resourceOrTransformation
— object- Either the resource to assign to the clone,
or a function which takes the current resource as a parameter
Returns
- InterventionBackend