You are here

public function StylePluginBase::preRender in Drupal 9

Same name and namespace in other branches
  1. 8 core/modules/views/src/Plugin/views/style/StylePluginBase.php \Drupal\views\Plugin\views\style\StylePluginBase::preRender()
  2. 10 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 439

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);
  }
}