Updated getTypes to return name, displayName and customCssClass