You are here

public static function EntityHelper::getBundleLabel in Helper 7

File

lib/EntityHelper.php, line 394

Class

EntityHelper

Code

public static function getBundleLabel($entity_type, $bundle) {
  $info = entity_get_info($entity_type);
  return !empty($info['bundles'][$bundle]['label']) ? $info['bundles'][$bundle]['label'] : FALSE;
}