function _taxonomy_term_depth_get_child_d86 in Taxonomy Term Depth 8.2
Gets child of the term
Parameters
$tid: Term tid to find its parent
1 call to _taxonomy_term_depth_get_child_d86()
- taxonomy_term_depth_get_child in ./
taxonomy_term_depth.module - Gets child of the term
File
- ./
taxonomy_term_depth.module, line 176 - Main module file.
Code
function _taxonomy_term_depth_get_child_d86($tid) {
$tid = Drupal::database()
->query("SELECT entity_id FROM {taxonomy_term__parent} WHERE parent_target_id = :tid", [
':tid' => $tid,
])
->fetchField();
return $tid;
}