public function TermStorageInterface::updateTermHierarchy in Drupal 10
Same name and namespace in other branches
- 8 core/modules/taxonomy/src/TermStorageInterface.php \Drupal\taxonomy\TermStorageInterface::updateTermHierarchy()
- 9 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 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);