function Sql::set_distinct in Views (for Drupal 7) 8.3
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 lib/
Drupal/ views/ Plugin/ views/ query/ Sql.php - Builds the necessary info to execute the query.
File
- lib/
Drupal/ views/ Plugin/ views/ query/ Sql.php, line 157 - Definition of Drupal\views\Plugin\views\query\Sql.
Class
- Sql
- @todo.
Namespace
Drupal\views\Plugin\views\queryCode
function set_distinct($value = TRUE) {
if (!(isset($this->no_distinct) && $value)) {
$this->distinct = $value;
}
}