function taxonomy_crud_taxonomy_vocabulary_presave

Same name and namespace in other branches
  1. 9 core/modules/taxonomy/tests/modules/taxonomy_crud/taxonomy_crud.module \taxonomy_crud_taxonomy_vocabulary_presave()
  2. 10 core/modules/taxonomy/tests/modules/taxonomy_crud/taxonomy_crud.module \taxonomy_crud_taxonomy_vocabulary_presave()
  3. 11.x core/modules/taxonomy/tests/modules/taxonomy_crud/taxonomy_crud.module \taxonomy_crud_taxonomy_vocabulary_presave()

Implements hook_ENTITY_TYPE_presave() for taxonomy_vocabulary entities.

File

core/modules/taxonomy/tests/modules/taxonomy_crud/taxonomy_crud.module, line 13

Code

function taxonomy_crud_taxonomy_vocabulary_presave(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.