You are here

function taxonomy_post_update_remove_hierarchy_from_vocabularies in Drupal 8

Remove the 'hierarchy' property from vocabularies.

File

core/modules/taxonomy/taxonomy.post_update.php, line 145
Post update functions for Taxonomy.

Code

function taxonomy_post_update_remove_hierarchy_from_vocabularies(&$sandbox = NULL) {
  \Drupal::classResolver(ConfigEntityUpdater::class)
    ->update($sandbox, 'taxonomy_vocabulary', function () {
    return TRUE;
  });
}