Act on a newly created vocabulary.
This hook runs after a new vocabulary object has just been instantiated. It can be used to set initial values, e.g. to provide defaults.
\Drupal\taxonomy\Plugin\Core\Entity\Vocabulary $vocabulary: The vocabulary object.
Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.
function hook_taxonomy_vocabulary_create(\Drupal\taxonomy\Plugin\Core\Entity\Vocabulary $vocabulary) {
if (!isset($vocabulary->foo)) {
$vocabulary->foo = NULL;
}
}