protected function PathautoGenerator::loadTermChildren in Pathauto 8
Finds all children of a term ID.
Parameters
int $tid: Term ID to retrieve parents for.
Return value
\Drupal\taxonomy\TermInterface[] An array of term objects that are the children of the term $tid.
1 call to PathautoGenerator::loadTermChildren()
- PathautoGenerator::updateEntityAlias in src/
PathautoGenerator.php - Creates or updates an alias for the given entity.
File
- src/
PathautoGenerator.php, line 406
Class
- PathautoGenerator
- Provides methods for generating path aliases.
Namespace
Drupal\pathautoCode
protected function loadTermChildren($tid) {
return $this->entityTypeManager
->getStorage('taxonomy_term')
->loadChildren($tid);
}