public function StylePluginBase::getFieldValue in Drupal 8
Same name and namespace in other branches
- 9 core/modules/views/src/Plugin/views/style/StylePluginBase.php \Drupal\views\Plugin\views\style\StylePluginBase::getFieldValue()
- 10 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 805
Class
- StylePluginBase
- Base class for views style plugins.
Namespace
Drupal\views\Plugin\views\styleCode
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;
}