AssetInterface
interface AssetInterface implements ResourceBasedInterface, ThumbnailSupportInterface, AssetSourceAwareInterface (View source)
A user-managed Asset which is stored in the Asset Repository
Methods
Returns the resource of this asset
Refreshes this asset after the PersistentResource has been modified
Returns a thumbnail of this model
No description
The title of this asset
Sets the title of this asset
Sets the resource and possibly triggers a refresh of dependent behavior
Returns the IANA media type of this asset
Returns a file extension fitting to the media type of this asset
Details
PersistentResource
getResource()
Returns the resource of this asset
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