You are here

public function views_php_plugin_pager::pre_render in Views PHP 7.2

File

plugins/views/views_php_plugin_pager.inc, line 42

Class

views_php_plugin_pager
A (fake) pager plugin that wraps around the actual pager.

Code

public function pre_render() {
  foreach (array(
    /*'argument',*/
    'field',
    'filter',
    'sort',
  ) as $type) {
    foreach ($this->wrapped->view->{$type} as $id => $handler) {
      if (is_callable(array(
        $handler,
        'php_pre_render',
      ))) {
        $handler
          ->php_pre_render();
      }
    }
  }
  $this
    ->update_wrapped_pager();
  $this
    ->php_unwrap();
}