You are here

public static function EntityHelper::getBundleOptions in Helper 7

File

lib/EntityHelper.php, line 399

Class

EntityHelper

Code

public static function getBundleOptions($entity_type) {
  $info = entity_get_info($entity_type);
  return !empty($info['bundles']) ? ArrayHelper::extractNestedValuesToArray($info['bundles'], array(
    'label',
  )) : array();
}