function StylePluginBase::preRender

Same name in other branches
  1. 9 core/modules/views/src/Plugin/views/style/StylePluginBase.php \Drupal\views\Plugin\views\style\StylePluginBase::preRender()
  2. 8.9.x core/modules/views/src/Plugin/views/style/StylePluginBase.php \Drupal\views\Plugin\views\style\StylePluginBase::preRender()
  3. 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 434

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

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.