function TermStorageInterface::updateTermHierarchy
Same name in other branches
- 9 core/modules/taxonomy/src/TermStorageInterface.php \Drupal\taxonomy\TermStorageInterface::updateTermHierarchy()
- 10 core/modules/taxonomy/src/TermStorageInterface.php \Drupal\taxonomy\TermStorageInterface::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.
1 method overrides TermStorageInterface::updateTermHierarchy()
- TermStorage::updateTermHierarchy in core/
modules/ taxonomy/ src/ TermStorage.php - Updates terms hierarchy information with the hierarchy trail of it.
File
-
core/
modules/ taxonomy/ src/ TermStorageInterface.php, line 35
Class
- TermStorageInterface
- Defines an interface for taxonomy_term entity storage classes.
Namespace
Drupal\taxonomyCode
public function updateTermHierarchy(EntityInterface $term);
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.