Sample Code:
public static String getLabelValue(String customLabelName){ Component.Apex.OutputText opText = new Component.Apex.OutputText(); opText.expressions.value = '{!$Label.' + customLabelName + '}'; return String.valueOf(opText.value); }
Sample Code:
public static String getLabelValue(String customLabelName){ Component.Apex.OutputText opText = new Component.Apex.OutputText(); opText.expressions.value = '{!$Label.' + customLabelName + '}'; return String.valueOf(opText.value); }