AssetVariantInterface
interface AssetVariantInterface implements AssetInterface (View source)
An interface of an asset which was derived from an original asset
Methods
Refreshes this asset after the PersistentResource has been modified
Returns a thumbnail of this model
No description
Sets the resource and possibly triggers a refresh of dependent behavior
Returns a file extension fitting to the media type of this asset
Returns the Asset this derived asset is based on
Details
        
                            PersistentResource
    getResource()
        
    
    Returns the PersistentResource
        
                            void
    refresh()
        
    
    Refreshes this asset after the PersistentResource has been modified
        
                            Thumbnail
    getThumbnail(int $maximumWidth = null, int $maximumHeight = null, string $ratioMode = ImageInterface::RATIOMODE_INSET, bool $allowUpScaling = null)
        
    
    Returns a thumbnail of this model
If the maximum width / height is not specified or exceeds the original asset's dimensions, the width / height of the original asset is used.
        
                            mixed
    addThumbnail(Thumbnail $thumbnail)
        
    
    Adds a thumbnail which was generated by the ThumbnailService.
        
                            void
    setAssetSourceIdentifier(string $assetSourceIdentifier)
        
    
    No description
        
                            string|null
    getAssetSourceIdentifier()
        
    
    No description
        
                            AssetProxyInterface|null
    getAssetProxy()
        
    
    No description
        
                            string
    getTitle()
        
    
    The title of this asset
        
                            void
    setTitle(string $title)
        
    
    Sets the title of this asset
        
                            void
    setResource(PersistentResource $resource)
        
    
    Sets the resource and possibly triggers a refresh of dependent behavior
        
                            string
    getMediaType()
        
    
    Returns the IANA media type of this asset
        
                            string
    getFileExtension()
        
    
    Returns a file extension fitting to the media type of this asset
        
                            AssetInterface
    getOriginalAsset()
        
    
    Returns the Asset this derived asset is based on