public function TermStorage::updateTermHierarchy in Drupal 10
Same name and namespace in other branches
- 8 core/modules/taxonomy/src/TermStorage.php \Drupal\taxonomy\TermStorage::updateTermHierarchy()
- 9 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 100
Class
- TermStorage
- Defines a Controller class for taxonomy terms.
Namespace
Drupal\taxonomyCode
public function updateTermHierarchy(EntityInterface $term) {
}