Commit 046bf09b authored by alexpott's avatar alexpott
Browse files

Issue #1922966 by jibran, damiankloip: Remove 'bool' and 'translatable' key...

Issue #1922966 by jibran, damiankloip: Remove 'bool' and 'translatable' key from option definitions.
parent d2cbadc1
......@@ -52,8 +52,8 @@ public function init(ViewExecutable $view, DisplayPluginBase $display, array &$o
protected function defineOptions() {
$options = parent::defineOptions();
$options['link_to_comment'] = array('default' => TRUE, 'bool' => TRUE);
$options['link_to_entity'] = array('default' => FALSE, 'bool' => TRUE);
$options['link_to_comment'] = array('default' => TRUE);
$options['link_to_entity'] = array('default' => FALSE);
return $options;
}
......
......@@ -29,7 +29,7 @@ class EntityLink extends FieldPluginBase {
protected function defineOptions() {
$options = parent::defineOptions();
$options['teaser'] = array('default' => FALSE, 'bool' => TRUE);
$options['teaser'] = array('default' => FALSE);
return $options;
}
......
......@@ -61,8 +61,8 @@ public function __construct(array $configuration, $plugin_id, $plugin_definition
protected function defineOptions() {
$options = parent::defineOptions();
$options['text'] = array('default' => '', 'translatable' => TRUE);
$options['link_to_entity'] = array('default' => FALSE, 'bool' => TRUE);
$options['text'] = array('default' => '');
$options['link_to_entity'] = array('default' => FALSE);
return $options;
}
......
......@@ -21,7 +21,7 @@ class LinkEdit extends Link {
protected function defineOptions() {
$options = parent::defineOptions();
$options['destination'] = array('default' => FALSE, 'bool' => TRUE);
$options['destination'] = array('default' => FALSE);
return $options;
}
......
......@@ -78,7 +78,7 @@ public function init(ViewExecutable $view, DisplayPluginBase $display, array &$o
protected function defineOptions() {
$options = parent::defineOptions();
$options['link_to_comment'] = array('default' => TRUE, 'bool' => TRUE);
$options['link_to_comment'] = array('default' => TRUE);
return $options;
}
......
......@@ -51,7 +51,7 @@ public function query() {
protected function defineOptions() {
$options = parent::defineOptions();
$options['link_to_user'] = array('default' => TRUE, 'bool' => TRUE);
$options['link_to_user'] = array('default' => TRUE);
return $options;
}
......
......@@ -36,7 +36,7 @@ public function init(ViewExecutable $view, DisplayPluginBase $display, array &$o
protected function defineOptions() {
$options = parent::defineOptions();
$options['link_to_user'] = array('default' => TRUE, 'bool' => TRUE);
$options['link_to_user'] = array('default' => TRUE);
return $options;
}
......
......@@ -26,7 +26,7 @@ class TranslationLink extends FieldPluginBase {
*/
protected function defineOptions() {
$options = parent::defineOptions();
$options['text'] = array('default' => '', 'translatable' => TRUE);
$options['text'] = array('default' => '');
return $options;
}
......
......@@ -39,7 +39,7 @@ public function init(ViewExecutable $view, DisplayPluginBase $display, array &$o
*/
protected function defineOptions() {
$options = parent::defineOptions();
$options['replace_variables'] = array('default' => TRUE, 'bool' => TRUE);
$options['replace_variables'] = array('default' => TRUE);
return $options;
}
......
......@@ -46,7 +46,7 @@ public function init(ViewExecutable $view, DisplayPluginBase $display, array &$o
protected function defineOptions() {
$options = parent::defineOptions();
$options['summary']['contains']['human'] = array('default' => FALSE, 'bool' => TRUE);
$options['summary']['contains']['human'] = array('default' => FALSE);
return $options;
}
......
......@@ -47,7 +47,7 @@ public function init(ViewExecutable $view, DisplayPluginBase $display, array &$o
protected function defineOptions() {
$options = parent::defineOptions();
$options['summary']['contains']['human'] = array('default' => FALSE, 'bool' => TRUE);
$options['summary']['contains']['human'] = array('default' => FALSE);
return $options;
}
......
......@@ -400,7 +400,6 @@ protected function defineOptions() {
// Options used for multiple value fields.
$options['group_rows'] = array(
'default' => TRUE,
'bool' => TRUE,
);
// If we know the exact number of allowed values, then that can be
// the default. Otherwise, default to 'all'.
......@@ -412,11 +411,9 @@ protected function defineOptions() {
);
$options['delta_reversed'] = array(
'default' => FALSE,
'bool' => TRUE,
);
$options['delta_first_last'] = array(
'default' => FALSE,
'bool' => TRUE,
);
$options['multi_type'] = array(
......@@ -428,7 +425,6 @@ protected function defineOptions() {
$options['field_api_classes'] = array(
'default' => FALSE,
'bool' => TRUE,
);
return $options;
......
......@@ -25,7 +25,7 @@ class Extension extends FieldPluginBase {
*/
protected function defineOptions() {
$options = parent::defineOptions();
$options['extension_detect_tar'] = array('default' => FALSE, 'bool' => TRUE);
$options['extension_detect_tar'] = array('default' => FALSE);
return $options;
}
......
......@@ -35,7 +35,7 @@ public function init(ViewExecutable $view, DisplayPluginBase $display, array &$o
protected function defineOptions() {
$options = parent::defineOptions();
$options['link_to_file'] = array('default' => FALSE, 'bool' => TRUE);
$options['link_to_file'] = array('default' => FALSE);
return $options;
}
......
......@@ -21,7 +21,7 @@ class FileMime extends File {
protected function defineOptions() {
$options = parent::defineOptions();
$options['filemime_image'] = array('default' => FALSE, 'bool' => TRUE);
$options['filemime_image'] = array('default' => FALSE);
return $options;
}
......
......@@ -19,7 +19,7 @@ class Uri extends File {
protected function defineOptions() {
$options = parent::defineOptions();
$options['file_download_path'] = array('default' => FALSE, 'bool' => TRUE);
$options['file_download_path'] = array('default' => FALSE);
return $options;
}
......
......@@ -50,7 +50,7 @@ public function init(ViewExecutable $view, DisplayPluginBase $display, array &$o
protected function defineOptions() {
$options = parent::defineOptions();
$options['comments'] = array('default' => FALSE, 'bool' => TRUE);
$options['comments'] = array('default' => FALSE);
return $options;
}
......
......@@ -22,7 +22,7 @@ class Language extends Node {
protected function defineOptions() {
$options = parent::defineOptions();
$options['native_language'] = array('default' => FALSE, 'bool' => TRUE);
$options['native_language'] = array('default' => FALSE);
return $options;
}
......
......@@ -29,7 +29,7 @@ public function usesGroupBy() {
protected function defineOptions() {
$options = parent::defineOptions();
$options['text'] = array('default' => '', 'translatable' => TRUE);
$options['text'] = array('default' => '');
return $options;
}
......
......@@ -38,7 +38,7 @@ public function init(ViewExecutable $view, DisplayPluginBase $display, array &$o
protected function defineOptions() {
$options = parent::defineOptions();
$options['link_to_node'] = array('default' => isset($this->definition['link_to_node default']) ? $this->definition['link_to_node default'] : FALSE, 'bool' => TRUE);
$options['link_to_node'] = array('default' => isset($this->definition['link_to_node default']) ? $this->definition['link_to_node default'] : FALSE);
return $options;
}
......
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