Render the field.
$values: The values retrieved from the database.
Overrides FieldPluginBase::render
function render($values) {
$node = $this
->get_entity($values);
comment_node_view($node, $this->options['teaser'] ? 'teaser' : 'full');
// Only render the links if they are defined.
return !empty($node->content['links']['comment']) ? drupal_render($node->content['links']['comment']) : '';
}