1 entityreference_plugin_row_fields.inc entityreference_plugin_row_fields::pre_render($row)

Allow the style to do stuff before each row is rendered.

Parameters

$result: The full array of results from the query.

Overrides views_plugin_row::pre_render

File

core/modules/entityreference/views/entityreference_plugin_row_fields.inc, line 27
Handler for entityreference_plugin_row_fields.

Class

entityreference_plugin_row_fields
@file Handler for entityreference_plugin_row_fields.

Code

function pre_render($row) {
  // Force all fields to be inline by default.
  if (empty($this->options['inline'])) {
    $fields = $this->view->get_items('field', $this->display->id);
    $this->options['inline'] = backdrop_map_assoc(array_keys($fields));
  }

  return parent::pre_render($row);
}