function taxonomy_crud_taxonomy_vocabulary_presave in Drupal 10
Same name and namespace in other branches
- 8 core/modules/taxonomy/tests/modules/taxonomy_crud/taxonomy_crud.module \taxonomy_crud_taxonomy_vocabulary_presave()
- 9 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 - Provides hook implementations for testing purposes.
Code
function taxonomy_crud_taxonomy_vocabulary_presave(VocabularyInterface $vocabulary) {
$vocabulary
->setThirdPartySetting('taxonomy_crud', 'foo', 'bar');
}