Skip to content

AssetPreviewHandlerInterface ​

Type
Interface
Namespace
craft\base
Implemented by
craft\assetpreviews\Image, craft\assetpreviews\Pdf, craft\assetpreviews\Text, craft\assetpreviews\Video, craft\base\AssetPreviewHandler
Since
3.4.0

AssetPreviewHandlerInterface defines the common interface to be implemented by classes that provide asset previewing functionality.

View source

Public Methods ​

MethodDescription
getPreviewHtml()Returns the asset preview HTML.

getPreviewHtml() ​

Returns the asset preview HTML.

View source

Returns ​

string – The preview modal HTML

Throws ​