Skip to content

Colorable ​

Type
Interface
Namespace
craft\base
Implemented by
craft\elements\Entry, craft\models\EntryType
Since
5.0.0

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

View source

Public Methods ​

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

getColor() ​

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

View source

Returns ​

\craft\enums\Color, null