function StylePluginBase::get_field in Views (for Drupal 7) 8.3
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 lib/
Drupal/ views/ Plugin/ views/ style/ StylePluginBase.php - Group records as needed for rendering.
File
- lib/
Drupal/ views/ Plugin/ views/ style/ StylePluginBase.php, line 634 - 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($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];
}
}