function TermStorageInterface::updateTermHierarchy

Same name in other branches
  1. 9 core/modules/taxonomy/src/TermStorageInterface.php \Drupal\taxonomy\TermStorageInterface::updateTermHierarchy()
  2. 8.9.x core/modules/taxonomy/src/TermStorageInterface.php \Drupal\taxonomy\TermStorageInterface::updateTermHierarchy()

Updates terms hierarchy information with the hierarchy trail of it.

Parameters

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

Deprecated

in drupal:10.1.0 and is removed from drupal:11.0.0. Parent references are automatically updated when updating a taxonomy term.

See also

https://www.drupal.org/node/2936675

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 37

Class

TermStorageInterface
Defines an interface for taxonomy_term entity storage classes.

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.