diff --git a/core/modules/views/lib/Drupal/views/Plugin/views/argument/ArgumentPluginBase.php b/core/modules/views/lib/Drupal/views/Plugin/views/argument/ArgumentPluginBase.php index 117ade9..7831349 100644 --- a/core/modules/views/lib/Drupal/views/Plugin/views/argument/ArgumentPluginBase.php +++ b/core/modules/views/lib/Drupal/views/Plugin/views/argument/ArgumentPluginBase.php @@ -795,7 +795,7 @@ function default_summary() { * Build the info for the summary query. * * This must: - * - add_groupby: group on this field in order to create summaries. + * - addGroupby: group on this field in order to create summaries. * - add_field: add a 'num_nodes' field for the count. Usually it will * be a count on $view->base_field * - set_count_field: Reset the count field so we get the right paging. @@ -856,7 +856,7 @@ function summary_basics($count_field = TRUE) { $distinct = ($this->view->display_handler->getOption('distinct') && empty($this->query->no_distinct)); $count_alias = $this->query->add_field($this->view->storage->get('base_table'), $this->view->storage->get('base_field'), 'num_records', array('count' => TRUE, 'distinct' => $distinct)); - $this->query->add_groupby($this->name_alias); + $this->query->addGroupby($this->name_alias); if ($count_field) { $this->query->set_count_field($this->tableAlias, $this->realField); diff --git a/core/modules/views/lib/Drupal/views/Plugin/views/query/Sql.php b/core/modules/views/lib/Drupal/views/Plugin/views/query/Sql.php index 3f7c8bd..15bcecf 100644 --- a/core/modules/views/lib/Drupal/views/Plugin/views/query/Sql.php +++ b/core/modules/views/lib/Drupal/views/Plugin/views/query/Sql.php @@ -1034,7 +1034,7 @@ function add_orderby($table, $field = NULL, $order = 'ASC', $alias = '', $params * for ensuring that the fields are fully qualified and the table is properly * added. */ - function add_groupby($clause) { + function addGroupby($clause) { // Only add it if it's not already in there. if (!in_array($clause, $this->groupby)) { $this->groupby[] = $clause; @@ -1243,7 +1243,7 @@ public function query($get_count = FALSE) { // Check query distinct value. if (empty($this->no_distinct) && $this->distinct && !empty($this->fields)) { $base_field_alias = $this->add_field($this->view->storage->get('base_table'), $this->view->storage->get('base_field')); - $this->add_groupby($base_field_alias); + $this->addGroupby($base_field_alias); $distinct = TRUE; }