function StylePluginBase::get_field_value in Views (for Drupal 7) 8.3
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 lib/
Drupal/ views/ Plugin/ views/ style/ StylePluginBase.php - Group records as needed for rendering.
File
- lib/
Drupal/ views/ Plugin/ views/ style/ StylePluginBase.php, line 652 - Definition of Drupal\views\Plugin\views\style\StylePluginBase.
Class
- StylePluginBase
- Base class to define a style plugin handler.
Namespace
Drupal\views\Plugin\views\styleCode
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;
}