You are here

public function EntityReferenceRevisions::preRender in Entity Reference Revisions 8

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

Parameters

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

Overrides RowPluginBase::preRender

File

src/Plugin/views/row/EntityReferenceRevisions.php, line 47

Class

EntityReferenceRevisions
EntityReferenceRevisions row plugin.

Namespace

Drupal\entity_reference_revisions\Plugin\views\row

Code

public function preRender($row) {

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