Resolve color name to CSS class(es)
Is there any public method which can resolve color names (such as
The reason I'm asking is that I'm creating a custom table column, and it makes sense to re-use the
success, warning, etc.) to the underlying CSS class(es).The reason I'm asking is that I'm creating a custom table column, and it makes sense to re-use the
getColor method which exists on an enum field that uses the HasColor trait, however this returns the color name rather than something that can be output.