Generates an array for rendering a comment.
Drupal\comment\Comment $comment: The comment object.
$view_mode: View mode, e.g. 'full', 'teaser'...
$langcode: (optional) A language code to use for rendering. Defaults to the global content language of the current request.
An array as expected by drupal_render().
function comment_view(Comment $comment, $view_mode = 'full', $langcode = NULL) {
return entity_view($comment, $view_mode, $langcode);
}