You are here

public function TermStorage::updateTermHierarchy in Drupal 9

Same name and namespace in other branches
  1. 8 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 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 100

Class

TermStorage
Defines a Controller class for taxonomy terms.

Namespace

Drupal\taxonomy

Code

public function updateTermHierarchy(EntityInterface $term) {
}