public function StyleTest::render in Views (for Drupal 7) 8.3
Overrides Drupal\views\Plugin\views\style\StylePluginBase::render()
Overrides StylePluginBase::render
File
- tests/
views_test_data/ lib/ Drupal/ views_test_data/ Plugin/ views/ style/ StyleTest.php, line 95 - Definition of Drupal\views_test_data\Plugin\views\style\StyleTest.
Class
- StyleTest
- Provides a general test style plugin.
Namespace
Drupal\views_test_data\Plugin\views\styleCode
public function render() {
$output = '';
if (!$this
->usesRowPlugin()) {
$output = $this
->getOutput();
}
else {
foreach ($this->view->result as $index => $row) {
$this->view->row_index = $index;
$output .= $this->row_plugin
->render($row) . "\n";
}
}
return $output;
}