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 708cdb2..e881d69 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 @@ -158,7 +158,7 @@ public function init(ViewExecutable $view, DisplayPluginBase $display, array &$o * @param bool $value * Should the view by distincted. */ - function set_distinct($value = TRUE) { + protected function setDistinct($value = TRUE) { if (!(isset($this->no_distinct) && $value)) { $this->distinct = $value; } @@ -1411,7 +1411,7 @@ function alter(ViewExecutable $view) { function build(ViewExecutable $view) { // Make the query distinct if the option was set. if (!empty($this->options['distinct'])) { - $this->set_distinct(TRUE); + $this->setDistinct(TRUE); } // Store the view in the object to be able to use it later.