You are here

function View::render in Views (for Drupal 7) 8.3

Same name in this branch
  1. 8.3 lib/Views/comment/Plugin/views/row/View.php \Views\comment\Plugin\views\row\View::render()
  2. 8.3 lib/Views/search/Plugin/views/row/View.php \Views\search\Plugin\views\row\View::render()
  3. 8.3 lib/Drupal/views/Plugin/views/area/View.php \Drupal\views\Plugin\views\area\View::render()

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

Overrides Entity::render

File

lib/Views/comment/Plugin/views/row/View.php, line 56
Definition of Views\comment\Plugin\views\row\View.

Class

View
Plugin which performs a comment_view on the resulting object.

Namespace

Views\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);
}