You are here

public function StylePluginBase::getFieldValue in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 core/modules/views/src/Plugin/views/style/StylePluginBase.php \Drupal\views\Plugin\views\style\StylePluginBase::getFieldValue()

Get the raw field value.

Parameters

$index: The index count of the row.

$field: The id of the field.

1 call to StylePluginBase::getFieldValue()
StylePluginBase::renderGrouping in core/modules/views/src/Plugin/views/style/StylePluginBase.php
Group records as needed for rendering.

File

core/modules/views/src/Plugin/views/style/StylePluginBase.php, line 779
Contains \Drupal\views\Plugin\views\style\StylePluginBase.

Class

StylePluginBase
Base class for views style plugins.

Namespace

Drupal\views\Plugin\views\style

Code

public function getFieldValue($index, $field) {
  $this->view->row_index = $index;
  $value = $this->view->field[$field]
    ->getValue($this->view->result[$index]);
  unset($this->view->row_index);
  return $value;
}