You are here

public function EntityReference::preRender in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/views/src/Plugin/views/row/EntityReference.php \Drupal\views\Plugin\views\row\EntityReference::preRender()
  2. 9 core/modules/views/src/Plugin/views/row/EntityReference.php \Drupal\views\Plugin\views\row\EntityReference::preRender()

File

core/modules/views/src/Plugin/views/row/EntityReference.php, line 46

Class

EntityReference
EntityReference row plugin.

Namespace

Drupal\views\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);
}