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 (opens new window)

# Public Methods

Method Description
getPreviewHtml() Returns the asset preview HTML.

# getPreviewHtml()

Returns the asset preview HTML.

View source (opens new window)

Returns

string (opens new window) – The preview modal HTML

Throws