function StylePluginBase::get_field

Get a rendered field.

Parameters

$index: The index count of the row.

$field: The id of the field.

1 call to StylePluginBase::get_field()
StylePluginBase::render_grouping in drupal/core/modules/views/lib/Drupal/views/Plugin/views/style/StylePluginBase.php
Group records as needed for rendering.

File

drupal/core/modules/views/lib/Drupal/views/Plugin/views/style/StylePluginBase.php, line 637
Definition of Drupal\views\Plugin\views\style\StylePluginBase.

Class

StylePluginBase
Base class to define a style plugin handler.

Namespace

Drupal\views\Plugin\views\style

Code

function get_field($index, $field) {
  if (!isset($this->rendered_fields)) {
    $this
      ->render_fields($this->view->result);
  }
  if (isset($this->rendered_fields[$index][$field])) {
    return $this->rendered_fields[$index][$field];
  }
}