function views_plugin_row_node_view::render
Overrides views_plugin_row::render
File
-
modules/
node/ views_plugin_row_node_view.inc, line 129
Class
- views_plugin_row_node_view
- Plugin which performs a node_view on the resulting object.
Code
public function render($row) {
if (isset($this->nodes[$row->{$this->field_alias}])) {
$node = $this->nodes[$row->{$this->field_alias}];
$node->view = $this->view;
$build = node_view($node, $this->options['view_mode']);
return drupal_render($build);
}
}