You are here

public function SearchApiMultiRowEntityView::render in Search API Multi-Index Searches 7

Render a row object. This usually passes through to a theme template of some form, but not always.

Parameters

stdClass $row: A single row of the query result, so an element of $view->result.

Return value

string The rendered output of a single row, used by the style plugin.

Overrides views_plugin_row::render

File

views/row_entity_view.inc, line 171
Contains the SearchApiMultiRowEntityView class.

Class

SearchApiMultiRowEntityView
Plugin class for displaying Views results with entity_view.

Code

public function render($values) {
  if ($wrapper = $this
    ->get_wrapper($values)) {
    $render = $wrapper
      ->view($this->options['view_mode'][$wrapper
      ->type()]);
    return drupal_render($render);
  }
}