1 views_plugin_row_user_view.inc | views_plugin_row_user_view::render($row) |
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
- core/
modules/ user/ views/ views_plugin_row_user_view.inc, line 74 - Contains the user view row plugin.
Class
- views_plugin_row_user_view
- A row plugin which renders a user account via user_view.
Code
function render($row) {
$account = $this->users[$row->{$this->field_alias}];
$account->view = $this->view;
$build = user_view($account, $this->options['view_mode']);
return backdrop_render($build);
}