public function EntityReference::pre_render

Overrides \Drupal\views\Plugin\views\row\Fields::pre_render().

Overrides RowPluginBase::pre_render

File

drupal/core/modules/entity_reference/lib/Drupal/entity_reference/Plugin/views/row/EntityReference.php, line 52
Contains \Drupal\entity_reference\Plugin\views\row\EntityReference.

Class

EntityReference
EntityReference row plugin.

Namespace

Drupal\entity_reference\Plugin\views\row

Code

public function pre_render($row) {

  // Force all fields to be inline by default.
  if (empty($this->options['inline'])) {
    $fields = $this->view
      ->getItems('field', $this->displayHandler->display['id']);
    $this->options['inline'] = drupal_map_assoc(array_keys($fields));
  }
  return parent::pre_render($row);
}