protected function Sql::setDistinct in Drupal 8
Same name and namespace in other branches
- 9 core/modules/views/src/Plugin/views/query/Sql.php \Drupal\views\Plugin\views\query\Sql::setDistinct()
Set the view to be distinct (per base field).
Parameters
bool $value: Should the view be distincted.
1 call to Sql::setDistinct()
- Sql::build in core/
modules/ views/ src/ Plugin/ views/ query/ Sql.php - Builds the necessary info to execute the query.
File
- core/
modules/ views/ src/ Plugin/ views/ query/ Sql.php, line 243
Class
- Sql
- Views query plugin for an SQL query.
Namespace
Drupal\views\Plugin\views\queryCode
protected function setDistinct($value = TRUE) {
if (!(isset($this->noDistinct) && $value)) {
$this->distinct = $value;
}
}