You are here

public function Result::query in Drupal 9

Same name and namespace in other branches
  1. 8 core/modules/views/src/Plugin/views/area/Result.php \Drupal\views\Plugin\views\area\Result::query()

Add anything to the query that we might need to.

Overrides HandlerBase::query

File

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

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