function taxonomy_post_update_remove_hierarchy_from_vocabularies

Remove the 'hierarchy' property from vocabularies.

File

core/modules/taxonomy/taxonomy.post_update.php, line 145

Code

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

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.