function Sql::set_distinct

Set the view to be distinct (per base field).

Parameters

bool $value: Should the view by distincted.

1 call to Sql::set_distinct()
Sql::build in drupal/core/modules/views/lib/Drupal/views/Plugin/views/query/Sql.php
Builds the necessary info to execute the query.

File

drupal/core/modules/views/lib/Drupal/views/Plugin/views/query/Sql.php, line 158
Definition of Drupal\views\Plugin\views\query\Sql.

Class

Sql
@todo.

Namespace

Drupal\views\Plugin\views\query

Code

function set_distinct($value = TRUE) {
  if (!(isset($this->no_distinct) && $value)) {
    $this->distinct = $value;
  }
}