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.
Public Methods ​
Method | Description |
---|---|
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.
Arguments ​
$size
(integer) – The maximum width and height the thumbnail should have.