function taxonomy_crud_taxonomy_vocabulary_presave in Zircon Profile 8
Same name and namespace in other branches
- 8.0 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 11 - Provides hook implementations for testing purposes.
Code
function taxonomy_crud_taxonomy_vocabulary_presave(\Drupal\taxonomy\VocabularyInterface $vocabulary) {
$vocabulary
->setThirdPartySetting('taxonomy_crud', 'foo', 'bar');
}