You are here

public function TermStorage::deleteTermHierarchy in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/taxonomy/src/TermStorage.php \Drupal\taxonomy\TermStorage::deleteTermHierarchy()

Removed reference to terms from term_hierarchy.

Parameters

array $tids: Array of terms that need to be removed from hierarchy.

Overrides TermStorageInterface::deleteTermHierarchy

File

core/modules/taxonomy/src/TermStorage.php, line 101
Contains \Drupal\taxonomy\TermStorage.

Class

TermStorage
Defines a Controller class for taxonomy terms.

Namespace

Drupal\taxonomy

Code

public function deleteTermHierarchy($tids) {
  $this->database
    ->delete('taxonomy_term_hierarchy')
    ->condition('tid', $tids, 'IN')
    ->execute();
}