function Result::query

Same name in other branches
  1. 9 core/modules/views/src/Plugin/views/area/Result.php \Drupal\views\Plugin\views\area\Result::query()
  2. 8.9.x core/modules/views/src/Plugin/views/area/Result.php \Drupal\views\Plugin\views\area\Result::query()
  3. 10 core/modules/views/src/Plugin/views/area/Result.php \Drupal\views\Plugin\views\area\Result::query()

Overrides HandlerBase::query

File

core/modules/views/src/Plugin/views/area/Result.php, line 62

Class

Result
Views area handler to display some configurable result summary.

Namespace

Drupal\views\Plugin\views\area

Code

public function query() {
    if (str_contains($this->options['content'], '@total')) {
        $this->view->get_total_rows = TRUE;
    }
}

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