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.
Public Methods ​
Method | Description |
---|---|
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.
Returns ​
\craft\enums\Color
, null