function CommentRow::render

Overrides Drupal\system\Plugin\views\row\Entity::render().

Overrides EntityRow::render

File

drupal/core/modules/comment/lib/Drupal/comment/Plugin/views/row/CommentRow.php, line 56
Definition of Drupal\comment\Plugin\views\row\CommentRow.

Class

CommentRow
Plugin which performs a comment_view on the resulting object.

Namespace

Drupal\comment\Plugin\views\row

Code

function render($row) {
  $entity_id = $row->{$this->field_alias};
  $build = $this->build[$entity_id];
  if (!$this->options['links']) {
    unset($build['links']);
  }
  return drupal_render($build);
}