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

The AssetPreview interface dictates the requirements to register Asset Preview handlers with Craft

View source

# Public Methods

Method Description
getPreviewHtml() Returns the asset preview HTML.

# getPreviewHtml()

Returns the asset preview HTML.

View source

Returns

string – The preview modal HTML

Throws