What is the best way to get the Record Type Description to display in a page?
public class AccountRecordTypes {
@AuraEnabled
public static Map<String,String> GetAvailableRecordTypeAccount()
{
Map<String,String> recordTypeMap = new Map<String,String>();
Schema.DescribeSObjectResult R = Account.SObjectType.getDescribe();
List<Schema.RecordTypeInfo> RT = R.getRecordTypeInfos();
for( Schema.RecordTypeInfo recordType : RT )
{
if(recordType.isAvailable())
{
if(recordType.Name!='Master') {
recordTypeMap.put(recordType.getRecordTypeId(),recordType.Name);
}
}
}
}
return recordTypeMap;
}
}