Commit 7d42bc24 authored by alexpott's avatar alexpott

Issue #2080131 by damiankloip: Disable 'Aggregation settings' for Views...

Issue #2080131 by damiankloip: Disable 'Aggregation settings' for Views handlers that should not support aggregation.
parent 6856f73b
......@@ -22,6 +22,13 @@
*/
class Comment extends FieldPluginBase {
/**
* {@inheritdoc}
*/
public function usesGroupBy() {
return FALSE;
}
/**
* Overrides \Drupal\views\Plugin\views\field\FieldPluginBase::init().
*
......
......@@ -24,6 +24,13 @@
*/
class NodeNewComments extends Numeric {
/**
* {@inheritdoc}
*/
public function usesGroupBy() {
return FALSE;
}
/**
* Database Service Object.
*
......
......@@ -20,6 +20,13 @@
*/
class ContextualLinks extends FieldPluginBase {
/**
* {@inheritdoc}
*/
public function usesGroupBy() {
return FALSE;
}
protected function defineOptions() {
$options = parent::defineOptions();
......
......@@ -25,6 +25,13 @@
*/
class HistoryUserTimestamp extends Node {
/**
* {@inheritdoc}
*/
public function usesGroupBy() {
return FALSE;
}
/**
* Overrides \Drupal\node\Plugin\views\field\Node::init().
*/
......
......@@ -25,6 +25,13 @@ class HistoryUserTimestamp extends FilterPluginBase {
// Don't display empty space where the operator would be.
var $no_operator = TRUE;
/**
* {@inheritdoc}
*/
public function usesGroupBy() {
return FALSE;
}
public function buildExposeForm(&$form, &$form_state) {
parent::buildExposeForm($form, $form_state);
// @todo There are better ways of excluding required and multiple (object flags)
......
......@@ -20,6 +20,13 @@
*/
class Link extends FieldPluginBase {
/**
* {@inheritdoc}
*/
public function usesGroupBy() {
return FALSE;
}
protected function defineOptions() {
$options = parent::defineOptions();
$options['text'] = array('default' => '', 'translatable' => TRUE);
......
......@@ -23,6 +23,13 @@
*/
class Link extends FieldPluginBase {
/**
* {@inheritdoc}
*/
public function usesGroupBy() {
return FALSE;
}
/**
* Overrides Drupal\views\Plugin\views\field\FieldPluginBase::init().
*/
......
......@@ -19,6 +19,14 @@
*/
class Counter extends FieldPluginBase {
/**
* {@inheritdoc}
*/
public function usesGroupBy() {
return FALSE;
}
protected function defineOptions() {
$options = parent::defineOptions();
$options['counter_start'] = array('default' => 1);
......
......@@ -19,6 +19,13 @@
*/
class Custom extends FieldPluginBase {
/**
* {@inheritdoc}
*/
public function usesGroupBy() {
return FALSE;
}
public function query() {
// do nothing -- to override the parent query.
}
......
......@@ -14,6 +14,13 @@
*/
abstract class Links extends FieldPluginBase {
/**
* {@inheritdoc}
*/
public function usesGroupBy() {
return FALSE;
}
/**
* Overrides \Drupal\views\Plugin\views\field\FieldPluginBase::defineOptions().
*/
......
......@@ -16,6 +16,13 @@
*/
class Random extends SortPluginBase {
/**
* {@inheritdoc}
*/
public function usesGroupBy() {
return FALSE;
}
public function query() {
$this->query->addOrderBy('rand');
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment