You are here

function views_plugin_ds_entity_view::ds_views_row_render_entity in Display Suite 7

Same name and namespace in other branches
  1. 7.2 views/views_plugin_ds_entity_view.inc \views_plugin_ds_entity_view::ds_views_row_render_entity()

Render a discrete entity based with the selected view mode.

Parameters

$view_mode: The view mode which is set in the Views' options.

$row: The current active row object being rendered.

Return value

$content An entity view rendered as HTML

1 call to views_plugin_ds_entity_view::ds_views_row_render_entity()
views_plugin_ds_entity_view::render in views/views_plugin_ds_entity_view.inc
Render each $row.

File

views/views_plugin_ds_entity_view.inc, line 383
Provides the Display suite views entity style plugin.

Class

views_plugin_ds_entity_view
Plugin which defines the view mode on the resulting entity object.

Code

function ds_views_row_render_entity($view_mode, $row, $load_comments) {
  $row_function = 'ds_views_row_render_' . $this->base_table;
  $content = $row_function($this->entities[$row->{$this->field_alias}], $view_mode, $load_comments);
  return $content;
}