taxonomy_get_children drupal 8
$children = \Drupal::entityTypeManager()->getStorage('taxonomy_term')->loadChildren($entity->id());
iLiar
$children = \Drupal::entityTypeManager()->getStorage('taxonomy_term')->loadChildren($entity->id());