You are here

public function StylePluginBase::preRender in Drupal 8

Same name and namespace in other branches
  1. 9 core/modules/views/src/Plugin/views/style/StylePluginBase.php \Drupal\views\Plugin\views\style\StylePluginBase::preRender()

Allow the style to do stuff before each row is rendered.

Parameters

$result: The full array of results from the query.

File

core/modules/views/src/Plugin/views/style/StylePluginBase.php, line 432

Class

StylePluginBase
Base class for views style plugins.

Namespace

Drupal\views\Plugin\views\style

Code

public function preRender($result) {
  if (!empty($this->view->rowPlugin)) {
    $this->view->rowPlugin
      ->preRender($result);
  }
}