function StylePluginBase::get_field_value

Get the raw field value.

Parameters

$index: The index count of the row.

$field: The id of the field.

1 call to StylePluginBase::get_field_value()
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 655
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_value($index, $field) {
  $this->view->row_index = $index;
  $value = $this->view->field[$field]
    ->get_value($this->view->result[$index]);
  unset($this->view->row_index);
  return $value;
}