diff --git a/core/modules/views/lib/Drupal/views/Plugin/views/area/Result.php b/core/modules/views/lib/Drupal/views/Plugin/views/area/Result.php index 8b1e218..8c438f9 100644 --- a/core/modules/views/lib/Drupal/views/Plugin/views/area/Result.php +++ b/core/modules/views/lib/Drupal/views/Plugin/views/area/Result.php @@ -54,6 +54,14 @@ public function buildOptionsForm(&$form, &$form_state) { ); } + /** + * Implements \Drupal\views\Plugin\views\area\AreaPluginBase::query(). + */ + public function query() { + if (strpos($this->options['content'], '@total') !== FALSE) { + $this->view->get_total_rows = TRUE; + } + } /** * Implements \Drupal\views\Plugin\views\area\AreaPluginBase::render().