function taxonomy_vocabulary_save

Saves a vocabulary.

Parameters

Drupal\taxonomy\Plugin\Core\Entity\Vocabulary $vocabulary: The taxonomy vocabulary entity to be saved.

20 calls to taxonomy_vocabulary_save()
DefaultViewsTest::setUp in drupal/core/modules/views/lib/Drupal/views/Tests/DefaultViewsTest.php
Sets up a Drupal site for running functional and integration tests.
EntityCrudHookTest::testTaxonomyTermHooks in drupal/core/modules/system/lib/Drupal/system/Tests/Entity/EntityCrudHookTest.php
Tests hook invocations for CRUD operations on taxonomy terms.
EntityCrudHookTest::testTaxonomyVocabularyHooks in drupal/core/modules/system/lib/Drupal/system/Tests/Entity/EntityCrudHookTest.php
Tests hook invocations for CRUD operations on taxonomy vocabularies.
FieldUiTestBase::setUp in drupal/core/modules/field_ui/lib/Drupal/field_ui/Tests/FieldUiTestBase.php
Sets up a Drupal site for running functional and integration tests.
ForumTest::doAdminTests in drupal/core/modules/forum/lib/Drupal/forum/Tests/ForumTest.php
Runs admin tests on the admin user.

... See full list

File

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

Code

function taxonomy_vocabulary_save(Vocabulary $vocabulary) {
  return $vocabulary
    ->save();
}