public CommentStorageInterface::loadThread(EntityInterface $entity, $field_name, $mode, $comments_per_page = 0, $pager_id = 0)
Retrieves comments for a thread, sorted in an order suitable for display.
Parameters
\Drupal\Core\Entity\EntityInterface $entity: The entity whose comment(s) needs rendering.
string $field_name: The field_name whose comment(s) needs rendering.
int $mode: The comment display mode: CommentManagerInterface::COMMENT_MODE_FLAT or CommentManagerInterface::COMMENT_MODE_THREAD