function taxonomy_entity_bundle_info

Implements hook_entity_bundle_info().

File

drupal/core/modules/taxonomy/taxonomy.module, line 111
Enables the organization of content into categories.

Code

function taxonomy_entity_bundle_info() {
  $bundles = array();
  foreach (taxonomy_vocabulary_get_names() as $id) {
    $config = config('taxonomy.vocabulary.' . $id);
    $bundles['taxonomy_term'][$id]['label'] = $config
      ->get('name');
  }
  return $bundles;
}