function taxonomy_vocabulary_get_names

Get names for all taxonomy vocabularies.

Return value

array A list of existing vocabulary IDs.

6 calls to taxonomy_vocabulary_get_names()
NodeTermData::init in drupal/core/modules/taxonomy/lib/Drupal/taxonomy/Plugin/views/relationship/NodeTermData.php
Overrides \Drupal\views\Plugin\views\relationship\RelationshipPluginBase::init().
taxonomy_entity_bundle_info in drupal/core/modules/taxonomy/taxonomy.module
Implements hook_entity_bundle_info().
taxonomy_term_load_multiple_by_name in drupal/core/modules/taxonomy/taxonomy.module
Try to map a string to an existing term, as for glossary use.
Term::init in drupal/core/modules/taxonomy/lib/Drupal/taxonomy/Plugin/views/argument_validator/Term.php
Overrides \Drupal\views\Plugin\views\Plugin\views\PluginBase::init().
Tid::init in drupal/core/modules/taxonomy/lib/Drupal/taxonomy/Plugin/views/argument_default/Tid.php
Overrides \Drupal\views\Plugin\views\Plugin\views\PluginBase::init().

... See full list

1 string reference to 'taxonomy_vocabulary_get_names'

File

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

Code

function taxonomy_vocabulary_get_names() {
  $names =& drupal_static(__FUNCTION__);
  if (!isset($names)) {
    $names = array();
    $config_names = config_get_storage_names_with_prefix('taxonomy.vocabulary.');
    foreach ($config_names as $config_name) {
      $id = substr($config_name, strlen('taxonomy.vocabulary.'));
      $names[$id] = $id;
    }
  }
  return $names;
}