You are here

protected function Sql::setDistinct in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 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 157
Contains \Drupal\views\Plugin\views\query\Sql.

Class

Sql
Views query plugin for an SQL query.

Namespace

Drupal\views\Plugin\views\query

Code

protected function setDistinct($value = TRUE) {
  if (!(isset($this->noDistinct) && $value)) {
    $this->distinct = $value;
  }
}