How you can display icons on views in Dynamics 365 entities

Here is the snippet how to display icons in a row in Dynamics 365.