Skip to content

Thumbable

Type
Interface
Namespace
craft\base
Implemented by
craft\base\ElementInterface
Since
5.0.0

Thumbable defines the common interface to be implemented by components that can have thumbnails within the control panel.

View source

Public Methods

MethodDescription
getThumbHtml()Returns the HTML for the component’s thumbnail, if it has one.

getThumbHtml()

Returns the HTML for the component’s thumbnail, if it has one.

View source

Arguments

  • $size (integer) – The maximum width and height the thumbnail should have.

Returns

string, null