You are here

function sitemap_vocab_title_update in Sitemap 2.0.x

Same name and namespace in other branches
  1. 8.2 sitemap.install \sitemap_vocab_title_update()

Helper function to get a vocabulary title for the 2.x settings update.

Parameters

string $vid:

Return value

string

1 call to sitemap_vocab_title_update()
sitemap_update_8200 in ./sitemap.install
Update configuration for 2.x.

File

./sitemap.install, line 198
Installation functions for Sitemap module.

Code

function sitemap_vocab_title_update($vid) {
  $config_factory = \Drupal::configFactory();
  $config = $config_factory
    ->getEditable('taxonomy.vocabulary.' . $vid);
  return $config
    ->get('name');
}