Implements hook_entity_bundle_info().
function contact_entity_bundle_info() {
$bundles = array();
foreach (config_get_storage_names_with_prefix('contact.category.') as $config_name) {
$config = config($config_name);
$bundles['contact_message'][$config
->get('id')]['label'] = $config
->get('label');
}
return $bundles;
}