function Result::query

Same name and namespace in other branches
  1. 8.9.x core/modules/views/src/Plugin/views/area/Result.php \Drupal\views\Plugin\views\area\Result::query()
  2. 10 core/modules/views/src/Plugin/views/area/Result.php \Drupal\views\Plugin\views\area\Result::query()
  3. 11.x 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 (strpos($this->options['content'], '@total') !== FALSE) {
        $this->view->get_total_rows = TRUE;
    }
}

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