Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. EntityReference.php

function EntityReference::preRender

Overrides RowPluginBase::preRender

File

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

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);
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal