Skip to content
Snippets Groups Projects

Resolve #3456341 "View result counter"

Open Pooja Sharma requested to merge issue/drupal-3456341:3456341-view-result-counter into 11.x
3 files
+ 86
0
Compare changes
  • Side-by-side
  • Inline
Files
3
@@ -54,6 +54,18 @@ public function query() {
// Do nothing -- to override the parent query.
}
/**
* {@inheritdoc}
*/
public function renderText($alter) {
Please register or sign in to reply
$value = parent::renderText($alter);
if ($value == $this->getFieldTokenPlaceholder()) {
$row_key = $this->view->row_index;
return $this->getValue($this->view->result[$row_key]);
}
return $value;
}
/**
* {@inheritdoc}
*/
Loading