function TaxonomyCrudHooks::taxonomyVocabularyPresave

Implements hook_ENTITY_TYPE_presave() for taxonomy_vocabulary entities.

File

core/modules/taxonomy/tests/modules/taxonomy_crud/src/Hook/TaxonomyCrudHooks.php, line 18

Class

TaxonomyCrudHooks
Hook implementations for taxonomy_crud.

Namespace

Drupal\taxonomy_crud\Hook

Code

public function taxonomyVocabularyPresave(VocabularyInterface $vocabulary) {
    $vocabulary->setThirdPartySetting('taxonomy_crud', 'foo', 'bar');
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.