TermStorage::deleteTermHierarchy

public TermStorage::deleteTermHierarchy($tids)

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 96

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();
}
doc_Drupal
2016-10-29 09:47:22
Comments
Leave a Comment

Please login to continue.