function TermStorage::updateTermHierarchy

Same name and namespace in other branches
  1. 8.9.x core/modules/taxonomy/src/TermStorage.php \Drupal\taxonomy\TermStorage::updateTermHierarchy()
  2. 10 core/modules/taxonomy/src/TermStorage.php \Drupal\taxonomy\TermStorage::updateTermHierarchy()

Updates terms hierarchy information with the hierarchy trail of it.

@todo remove this method Drupal 9.0.x. Now the parent references are automatically updates when a taxonomy term is added/updated. https://www.drupal.org/node/2785693

Parameters

\Drupal\Core\Entity\EntityInterface $term: Term entity that needs to be added to term hierarchy information.

Overrides TermStorageInterface::updateTermHierarchy

File

core/modules/taxonomy/src/TermStorage.php, line 99

Class

TermStorage
Defines a Controller class for taxonomy terms.

Namespace

Drupal\taxonomy

Code

public function updateTermHierarchy(EntityInterface $term) {
}

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