Issue #1922966 by jibran, damiankloip: Remove 'bool' and 'translatable' key from option definitions.
parent
d2cbadc1e5
commit
046bf09b43
|
@ -52,8 +52,8 @@ class Comment extends FieldPluginBase {
|
|||
|
||||
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 @@ class Link extends FieldPluginBase {
|
|||
|
||||
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 @@ class NodeNewComments extends Numeric {
|
|||
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 @@ class StatisticsLastCommentName extends FieldPluginBase {
|
|||
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 @@ class Username extends FieldPluginBase {
|
|||
|
||||
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 @@ class DblogMessage extends FieldPluginBase {
|
|||
*/
|
||||
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 @@ class FieldList extends Numeric {
|
|||
|
||||
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 @@ class ListString extends String {
|
|||
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 @@ class Field extends FieldPluginBase {
|
|||
// 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 @@ class Field extends FieldPluginBase {
|
|||
);
|
||||
$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 @@ class Field extends FieldPluginBase {
|
|||
|
||||
$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 @@ class File extends FieldPluginBase {
|
|||
|
||||
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 @@ class HistoryUserTimestamp extends Node {
|
|||
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 @@ class Link extends FieldPluginBase {
|
|||
|
||||
protected function defineOptions() {
|
||||
$options = parent::defineOptions();
|
||||
$options['text'] = array('default' => '', 'translatable' => TRUE);
|
||||
$options['text'] = array('default' => '');
|
||||
return $options;
|
||||
}
|
||||
|
||||
|
|
|
@ -38,7 +38,7 @@ class Node extends FieldPluginBase {
|
|||
|
||||
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;
|
||||
}
|
||||
|
||||
|
|
|
@ -33,7 +33,7 @@ class Path extends FieldPluginBase {
|
|||
|
||||
protected function defineOptions() {
|
||||
$options = parent::defineOptions();
|
||||
$options['absolute'] = array('default' => FALSE, 'bool' => TRUE);
|
||||
$options['absolute'] = array('default' => FALSE);
|
||||
|
||||
return $options;
|
||||
}
|
||||
|
|
|
@ -35,7 +35,7 @@ class Revision extends Node {
|
|||
}
|
||||
protected function defineOptions() {
|
||||
$options = parent::defineOptions();
|
||||
$options['link_to_node_revision'] = array('default' => FALSE, 'bool' => TRUE);
|
||||
$options['link_to_node_revision'] = array('default' => FALSE);
|
||||
return $options;
|
||||
}
|
||||
|
||||
|
|
|
@ -22,7 +22,7 @@ class Type extends Node {
|
|||
|
||||
protected function defineOptions() {
|
||||
$options = parent::defineOptions();
|
||||
$options['machine_name'] = array('default' => FALSE, 'bool' => TRUE);
|
||||
$options['machine_name'] = array('default' => FALSE);
|
||||
|
||||
return $options;
|
||||
}
|
||||
|
|
|
@ -27,7 +27,7 @@ class SearchRow extends RowPluginBase {
|
|||
protected function defineOptions() {
|
||||
$options = parent::defineOptions();
|
||||
|
||||
$options['score'] = array('default' => TRUE, 'bool' => TRUE);
|
||||
$options['score'] = array('default' => TRUE);
|
||||
|
||||
return $options;
|
||||
}
|
||||
|
|
|
@ -80,7 +80,7 @@ class BulkForm extends FieldPluginBase {
|
|||
*/
|
||||
protected function defineOptions() {
|
||||
$options = parent::defineOptions();
|
||||
$options['action_title'] = array('default' => 'With selection', 'translatable' => TRUE);
|
||||
$options['action_title'] = array('default' => 'With selection');
|
||||
$options['include_exclude'] = array(
|
||||
'default' => 'exclude',
|
||||
);
|
||||
|
|
|
@ -27,8 +27,8 @@ class IndexTidDepth extends ArgumentPluginBase {
|
|||
$options = parent::defineOptions();
|
||||
|
||||
$options['depth'] = array('default' => 0);
|
||||
$options['break_phrase'] = array('default' => FALSE, 'bool' => TRUE);
|
||||
$options['use_taxonomy_term_path'] = array('default' => FALSE, 'bool' => TRUE);
|
||||
$options['break_phrase'] = array('default' => FALSE);
|
||||
$options['use_taxonomy_term_path'] = array('default' => FALSE);
|
||||
|
||||
return $options;
|
||||
}
|
||||
|
|
|
@ -47,10 +47,10 @@ class Tid extends ArgumentDefaultPluginBase {
|
|||
protected function defineOptions() {
|
||||
$options = parent::defineOptions();
|
||||
|
||||
$options['term_page'] = array('default' => TRUE, 'bool' => TRUE);
|
||||
$options['node'] = array('default' => FALSE, 'bool' => TRUE);
|
||||
$options['term_page'] = array('default' => TRUE);
|
||||
$options['node'] = array('default' => FALSE);
|
||||
$options['anyall'] = array('default' => ',');
|
||||
$options['limit'] = array('default' => FALSE, 'bool' => TRUE);
|
||||
$options['limit'] = array('default' => FALSE);
|
||||
$options['vids'] = array('default' => array());
|
||||
|
||||
return $options;
|
||||
|
|
|
@ -46,7 +46,7 @@ class TermName extends Entity {
|
|||
*/
|
||||
protected function defineOptions() {
|
||||
$options = parent::defineOptions();
|
||||
$options['transform'] = array('default' => FALSE, 'bool' => TRUE);
|
||||
$options['transform'] = array('default' => FALSE);
|
||||
|
||||
return $options;
|
||||
}
|
||||
|
|
|
@ -36,7 +36,7 @@ class LinkEdit extends FieldPluginBase {
|
|||
protected function defineOptions() {
|
||||
$options = parent::defineOptions();
|
||||
|
||||
$options['text'] = array('default' => '', 'translatable' => TRUE);
|
||||
$options['text'] = array('default' => '');
|
||||
|
||||
return $options;
|
||||
}
|
||||
|
|
|
@ -41,8 +41,8 @@ class Taxonomy extends FieldPluginBase {
|
|||
|
||||
protected function defineOptions() {
|
||||
$options = parent::defineOptions();
|
||||
$options['link_to_taxonomy'] = array('default' => FALSE, 'bool' => TRUE);
|
||||
$options['convert_spaces'] = array('default' => FALSE, 'bool' => TRUE);
|
||||
$options['link_to_taxonomy'] = array('default' => FALSE);
|
||||
$options['convert_spaces'] = array('default' => FALSE);
|
||||
return $options;
|
||||
}
|
||||
|
||||
|
|
|
@ -40,8 +40,8 @@ class TaxonomyIndexTid extends PrerenderList {
|
|||
protected function defineOptions() {
|
||||
$options = parent::defineOptions();
|
||||
|
||||
$options['link_to_taxonomy'] = array('default' => TRUE, 'bool' => TRUE);
|
||||
$options['limit'] = array('default' => FALSE, 'bool' => TRUE);
|
||||
$options['link_to_taxonomy'] = array('default' => TRUE);
|
||||
$options['limit'] = array('default' => FALSE);
|
||||
$options['vids'] = array('default' => array());
|
||||
|
||||
return $options;
|
||||
|
|
|
@ -46,10 +46,10 @@ class TaxonomyIndexTid extends ManyToOne {
|
|||
$options = parent::defineOptions();
|
||||
|
||||
$options['type'] = array('default' => 'textfield');
|
||||
$options['limit'] = array('default' => TRUE, 'bool' => TRUE);
|
||||
$options['limit'] = array('default' => TRUE);
|
||||
$options['vid'] = array('default' => '');
|
||||
$options['hierarchy'] = array('default' => 0);
|
||||
$options['error_message'] = array('default' => TRUE, 'bool' => TRUE);
|
||||
$options['error_message'] = array('default' => TRUE);
|
||||
|
||||
return $options;
|
||||
}
|
||||
|
|
|
@ -29,7 +29,7 @@ class User extends ArgumentDefaultPluginBase {
|
|||
*/
|
||||
protected function defineOptions() {
|
||||
$options = parent::defineOptions();
|
||||
$options['user'] = array('default' => '', 'bool' => TRUE, 'translatable' => FALSE);
|
||||
$options['user'] = array('default' => '');
|
||||
|
||||
return $options;
|
||||
}
|
||||
|
|
|
@ -43,7 +43,7 @@ class User extends Entity {
|
|||
*/
|
||||
protected function defineOptions() {
|
||||
$options = parent::defineOptions();
|
||||
$options['restrict_roles'] = array('default' => FALSE, 'bool' => TRUE);
|
||||
$options['restrict_roles'] = array('default' => FALSE);
|
||||
$options['roles'] = array('default' => array());
|
||||
|
||||
return $options;
|
||||
|
|
|
@ -42,7 +42,7 @@ class Link extends FieldPluginBase {
|
|||
|
||||
protected function defineOptions() {
|
||||
$options = parent::defineOptions();
|
||||
$options['text'] = array('default' => '', 'translatable' => TRUE);
|
||||
$options['text'] = array('default' => '');
|
||||
return $options;
|
||||
}
|
||||
|
||||
|
|
|
@ -39,9 +39,9 @@ class Name extends User {
|
|||
protected function defineOptions() {
|
||||
$options = parent::defineOptions();
|
||||
|
||||
$options['overwrite_anonymous'] = array('default' => FALSE, 'bool' => TRUE);
|
||||
$options['anonymous_text'] = array('default' => '', 'translatable' => TRUE);
|
||||
$options['format_username'] = array('default' => TRUE, 'bool' => TRUE);
|
||||
$options['overwrite_anonymous'] = array('default' => FALSE);
|
||||
$options['anonymous_text'] = array('default' => '');
|
||||
$options['format_username'] = array('default' => TRUE);
|
||||
|
||||
return $options;
|
||||
}
|
||||
|
|
|
@ -35,7 +35,7 @@ class User extends FieldPluginBase {
|
|||
|
||||
protected function defineOptions() {
|
||||
$options = parent::defineOptions();
|
||||
$options['link_to_user'] = array('default' => TRUE, 'bool' => TRUE);
|
||||
$options['link_to_user'] = array('default' => TRUE);
|
||||
return $options;
|
||||
}
|
||||
|
||||
|
|
|
@ -31,7 +31,7 @@ class ManyToOneHelper {
|
|||
}
|
||||
|
||||
public static function defineOptions(&$options) {
|
||||
$options['reduce_duplicates'] = array('default' => FALSE, 'bool' => TRUE);
|
||||
$options['reduce_duplicates'] = array('default' => FALSE);
|
||||
}
|
||||
|
||||
public function buildOptionsForm(&$form, FormStateInterface $form_state) {
|
||||
|
|
|
@ -164,7 +164,7 @@ abstract class HandlerBase extends PluginBase implements ViewsHandlerInterface {
|
|||
$options['field'] = array('default' => '');
|
||||
$options['relationship'] = array('default' => 'none');
|
||||
$options['group_type'] = array('default' => 'group');
|
||||
$options['admin_label'] = array('default' => '', 'translatable' => TRUE);
|
||||
$options['admin_label'] = array('default' => '');
|
||||
$options['dependencies'] = array('default' => array());
|
||||
|
||||
return $options;
|
||||
|
|
|
@ -137,13 +137,11 @@ abstract class PluginBase extends ComponentPluginBase implements ContainerFactor
|
|||
* @code
|
||||
* 'option_name' => array(
|
||||
* - 'default' => default value,
|
||||
* - 'translatable' => (optional) TRUE/FALSE (wrap in $this->t() on export if true),
|
||||
* - 'contains' => (optional) array of items this contains, with its own
|
||||
* defaults, etc. If contains is set, the default will be ignored and
|
||||
* assumed to be array().
|
||||
* - 'bool' => (optional) TRUE/FALSE Is the value a boolean value. This will
|
||||
* change the export format to TRUE/FALSE instead of 1/0.
|
||||
* ),
|
||||
* @endcode
|
||||
*
|
||||
* @return array
|
||||
* Returns the options of this handler/plugin.
|
||||
|
|
|
@ -67,7 +67,7 @@ abstract class AreaPluginBase extends HandlerBase {
|
|||
$this->definition['field'] = !empty($this->definition['field']) ? $this->definition['field'] : '';
|
||||
$label = !empty($this->definition['label']) ? $this->definition['label'] : $this->definition['field'];
|
||||
$options['admin_label']['default'] = $label;
|
||||
$options['empty'] = array('default' => FALSE, 'bool' => TRUE);
|
||||
$options['empty'] = array('default' => FALSE);
|
||||
|
||||
return $options;
|
||||
}
|
||||
|
|
|
@ -29,7 +29,6 @@ class Result extends AreaPluginBase {
|
|||
|
||||
$options['content'] = array(
|
||||
'default' => 'Displaying @start - @end of @total',
|
||||
'translatable' => TRUE,
|
||||
);
|
||||
|
||||
return $options;
|
||||
|
|
|
@ -23,7 +23,7 @@ class Text extends TokenizeAreaPluginBase {
|
|||
*/
|
||||
protected function defineOptions() {
|
||||
$options = parent::defineOptions();
|
||||
$options['content'] = array('default' => '', 'translatable' => TRUE, 'format_key' => 'format');
|
||||
$options['content'] = array('default' => '', 'format_key' => 'format');
|
||||
$options['format'] = array('default' => NULL);
|
||||
return $options;
|
||||
}
|
||||
|
|
|
@ -23,7 +23,7 @@ class TextCustom extends TokenizeAreaPluginBase {
|
|||
*/
|
||||
protected function defineOptions() {
|
||||
$options = parent::defineOptions();
|
||||
$options['content'] = array('default' => '', 'translatable' => TRUE);
|
||||
$options['content'] = array('default' => '');
|
||||
return $options;
|
||||
}
|
||||
|
||||
|
|
|
@ -24,7 +24,7 @@ class Title extends AreaPluginBase {
|
|||
*/
|
||||
protected function defineOptions() {
|
||||
$options = parent::defineOptions();
|
||||
$options['title'] = array('default' => '', 'translatable' => TRUE);
|
||||
$options['title'] = array('default' => '');
|
||||
return $options;
|
||||
}
|
||||
|
||||
|
|
|
@ -26,7 +26,7 @@ abstract class TokenizeAreaPluginBase extends AreaPluginBase {
|
|||
*/
|
||||
protected function defineOptions() {
|
||||
$options = parent::defineOptions();
|
||||
$options['tokenize'] = array('default' => FALSE, 'bool' => TRUE);
|
||||
$options['tokenize'] = array('default' => FALSE);
|
||||
return $options;
|
||||
}
|
||||
|
||||
|
|
|
@ -72,7 +72,7 @@ class View extends AreaPluginBase {
|
|||
$options = parent::defineOptions();
|
||||
|
||||
$options['view_to_insert'] = array('default' => '');
|
||||
$options['inherit_arguments'] = array('default' => FALSE, 'bool' => TRUE);
|
||||
$options['inherit_arguments'] = array('default' => FALSE);
|
||||
return $options;
|
||||
}
|
||||
|
||||
|
|
|
@ -122,15 +122,15 @@ abstract class ArgumentPluginBase extends HandlerBase {
|
|||
$options['exception'] = array(
|
||||
'contains' => array(
|
||||
'value' => array('default' => 'all'),
|
||||
'title_enable' => array('default' => FALSE, 'bool' => TRUE),
|
||||
'title' => array('default' => 'All', 'translatable' => TRUE),
|
||||
'title_enable' => array('default' => FALSE),
|
||||
'title' => array('default' => 'All'),
|
||||
),
|
||||
);
|
||||
$options['title_enable'] = array('default' => FALSE, 'bool' => TRUE);
|
||||
$options['title'] = array('default' => '', 'translatable' => TRUE);
|
||||
$options['title_enable'] = array('default' => FALSE);
|
||||
$options['title'] = array('default' => '');
|
||||
$options['default_argument_type'] = array('default' => 'fixed');
|
||||
$options['default_argument_options'] = array('default' => array());
|
||||
$options['default_argument_skip_url'] = array('default' => FALSE, 'bool' => TRUE);
|
||||
$options['default_argument_skip_url'] = array('default' => FALSE);
|
||||
$options['summary_options'] = array('default' => array());
|
||||
$options['summary'] = array(
|
||||
'contains' => array(
|
||||
|
@ -139,7 +139,7 @@ abstract class ArgumentPluginBase extends HandlerBase {
|
|||
'format' => array('default' => 'default_summary'),
|
||||
),
|
||||
);
|
||||
$options['specify_validation'] = array('default' => FALSE, 'bool' => TRUE);
|
||||
$options['specify_validation'] = array('default' => FALSE);
|
||||
$options['validate'] = array(
|
||||
'contains' => array(
|
||||
'type' => array('default' => 'none'),
|
||||
|
|
|
@ -46,11 +46,11 @@ class ManyToOne extends ArgumentPluginBase {
|
|||
$options = parent::defineOptions();
|
||||
|
||||
if (!empty($this->definition['numeric'])) {
|
||||
$options['break_phrase'] = array('default' => FALSE, 'bool' => TRUE);
|
||||
$options['break_phrase'] = array('default' => FALSE);
|
||||
}
|
||||
|
||||
$options['add_table'] = array('default' => FALSE, 'bool' => TRUE);
|
||||
$options['require_value'] = array('default' => FALSE, 'bool' => TRUE);
|
||||
$options['add_table'] = array('default' => FALSE);
|
||||
$options['require_value'] = array('default' => FALSE);
|
||||
|
||||
if (isset($this->helper)) {
|
||||
$this->helper->defineOptions($options);
|
||||
|
|
|
@ -20,7 +20,7 @@ class Null extends ArgumentPluginBase {
|
|||
|
||||
protected function defineOptions() {
|
||||
$options = parent::defineOptions();
|
||||
$options['must_not_be'] = array('default' => FALSE, 'bool' => TRUE);
|
||||
$options['must_not_be'] = array('default' => FALSE);
|
||||
return $options;
|
||||
}
|
||||
|
||||
|
|
|
@ -34,8 +34,8 @@ class Numeric extends ArgumentPluginBase {
|
|||
protected function defineOptions() {
|
||||
$options = parent::defineOptions();
|
||||
|
||||
$options['break_phrase'] = array('default' => FALSE, 'bool' => TRUE);
|
||||
$options['not'] = array('default' => FALSE, 'bool' => TRUE);
|
||||
$options['break_phrase'] = array('default' => FALSE);
|
||||
$options['not'] = array('default' => FALSE);
|
||||
|
||||
return $options;
|
||||
}
|
||||
|
|
|
@ -40,16 +40,16 @@ class String extends ArgumentPluginBase {
|
|||
protected function defineOptions() {
|
||||
$options = parent::defineOptions();
|
||||
|
||||
$options['glossary'] = array('default' => FALSE, 'bool' => TRUE);
|
||||
$options['glossary'] = array('default' => FALSE);
|
||||
$options['limit'] = array('default' => 0);
|
||||
$options['case'] = array('default' => 'none');
|
||||
$options['path_case'] = array('default' => 'none');
|
||||
$options['transform_dash'] = array('default' => FALSE, 'bool' => TRUE);
|
||||
$options['break_phrase'] = array('default' => FALSE, 'bool' => TRUE);
|
||||
$options['transform_dash'] = array('default' => FALSE);
|
||||
$options['break_phrase'] = array('default' => FALSE);
|
||||
|
||||
if (!empty($this->definition['many to one'])) {
|
||||
$options['add_table'] = array('default' => FALSE, 'bool' => TRUE);
|
||||
$options['require_value'] = array('default' => FALSE, 'bool' => TRUE);
|
||||
$options['add_table'] = array('default' => FALSE);
|
||||
$options['require_value'] = array('default' => FALSE);
|
||||
}
|
||||
|
||||
return $options;
|
||||
|
|
|
@ -64,7 +64,7 @@ class Raw extends ArgumentDefaultPluginBase {
|
|||
protected function defineOptions() {
|
||||
$options = parent::defineOptions();
|
||||
$options['index'] = array('default' => '');
|
||||
$options['use_alias'] = array('default' => FALSE, 'bool' => TRUE);
|
||||
$options['use_alias'] = array('default' => FALSE);
|
||||
|
||||
return $options;
|
||||
}
|
||||
|
|
|
@ -76,9 +76,9 @@ class Entity extends ArgumentValidatorPluginBase {
|
|||
$options = parent::defineOptions();
|
||||
|
||||
$options['bundles'] = array('default' => array());
|
||||
$options['access'] = array('default' => FALSE, 'bool' => TRUE);
|
||||
$options['access'] = array('default' => FALSE);
|
||||
$options['operation'] = array('default' => 'view');
|
||||
$options['multiple'] = array('default' => FALSE, 'bool' => TRUE);
|
||||
$options['multiple'] = array('default' => FALSE);
|
||||
|
||||
return $options;
|
||||
}
|
||||
|
|
|
@ -42,10 +42,10 @@ class Attachment extends DisplayPluginBase {
|
|||
|
||||
$options['displays'] = array('default' => array());
|
||||
$options['attachment_position'] = array('default' => 'before');
|
||||
$options['inherit_arguments'] = array('default' => TRUE, 'bool' => TRUE);
|
||||
$options['inherit_exposed_filters'] = array('default' => FALSE, 'bool' => TRUE);
|
||||
$options['inherit_pager'] = array('default' => FALSE, 'bool' => TRUE);
|
||||
$options['render_pager'] = array('default' => FALSE, 'bool' => TRUE);
|
||||
$options['inherit_arguments'] = array('default' => TRUE);
|
||||
$options['inherit_exposed_filters'] = array('default' => FALSE);
|
||||
$options['inherit_pager'] = array('default' => FALSE);
|
||||
$options['render_pager'] = array('default' => FALSE);
|
||||
|
||||
return $options;
|
||||
}
|
||||
|
|
|
@ -84,8 +84,8 @@ class Block extends DisplayPluginBase {
|
|||
protected function defineOptions() {
|
||||
$options = parent::defineOptions();
|
||||
|
||||
$options['block_description'] = array('default' => '', 'translatable' => TRUE);
|
||||
$options['block_category'] = array('default' => 'Lists (Views)', 'translatable' => TRUE);
|
||||
$options['block_description'] = array('default' => '');
|
||||
$options['block_category'] = array('default' => 'Lists (Views)');
|
||||
$options['block_hide_empty'] = array('default' => FALSE);
|
||||
|
||||
$options['allow'] = array(
|
||||
|
|
|
@ -542,47 +542,36 @@ abstract class DisplayPluginBase extends PluginBase {
|
|||
|
||||
'title' => array(
|
||||
'default' => '',
|
||||
'translatable' => TRUE,
|
||||
),
|
||||
'enabled' => array(
|
||||
'default' => TRUE,
|
||||
'translatable' => FALSE,
|
||||
'bool' => TRUE,
|
||||
),
|
||||
'display_comment' => array(
|
||||
'default' => '',
|
||||
),
|
||||
'css_class' => array(
|
||||
'default' => '',
|
||||
'translatable' => FALSE,
|
||||
),
|
||||
'display_description' => array(
|
||||
'default' => '',
|
||||
'translatable' => TRUE,
|
||||
),
|
||||
'use_ajax' => array(
|
||||
'default' => FALSE,
|
||||
'bool' => TRUE,
|
||||
),
|
||||
'hide_attachment_summary' => array(
|
||||
'default' => FALSE,
|
||||
'bool' => TRUE,
|
||||
),
|
||||
'show_admin_links' => array(
|
||||
'default' => TRUE,
|
||||
'bool' => TRUE,
|
||||
),
|
||||
'use_more' => array(
|
||||
'default' => FALSE,
|
||||
'bool' => TRUE,
|
||||
),
|
||||
'use_more_always' => array(
|
||||
'default' => TRUE,
|
||||
'bool' => TRUE,
|
||||
),
|
||||
'use_more_text' => array(
|
||||
'default' => 'more',
|
||||
'translatable' => TRUE,
|
||||
),
|
||||
'link_display' => array(
|
||||
'default' => '',
|
||||
|
@ -592,14 +581,12 @@ abstract class DisplayPluginBase extends PluginBase {
|
|||
),
|
||||
'group_by' => array(
|
||||
'default' => FALSE,
|
||||
'bool' => TRUE,
|
||||
),
|
||||
'field_langcode' => array(
|
||||
'default' => '***LANGUAGE_language_content***',
|
||||
),
|
||||
'field_langcode_add_to_query' => array(
|
||||
'default' => TRUE,
|
||||
'bool' => TRUE,
|
||||
),
|
||||
|
||||
// These types are all plugins that can have individual settings
|
||||
|
|
|
@ -43,13 +43,13 @@ abstract class ExposedFormPluginBase extends PluginBase {
|
|||
|
||||
protected function defineOptions() {
|
||||
$options = parent::defineOptions();
|
||||
$options['submit_button'] = array('default' => 'Apply', 'translatable' => TRUE);
|
||||
$options['reset_button'] = array('default' => FALSE, 'bool' => TRUE);
|
||||
$options['reset_button_label'] = array('default' => 'Reset', 'translatable' => TRUE);
|
||||
$options['exposed_sorts_label'] = array('default' => 'Sort by', 'translatable' => TRUE);
|
||||
$options['expose_sort_order'] = array('default' => TRUE, 'bool' => TRUE);
|
||||
$options['sort_asc_label'] = array('default' => 'Asc', 'translatable' => TRUE);
|
||||
$options['sort_desc_label'] = array('default' => 'Desc', 'translatable' => TRUE);
|
||||
$options['submit_button'] = array('default' => 'Apply');
|
||||
$options['reset_button'] = array('default' => FALSE);
|
||||
$options['reset_button_label'] = array('default' => 'Reset');
|
||||
$options['exposed_sorts_label'] = array('default' => 'Sort by');
|
||||
$options['expose_sort_order'] = array('default' => TRUE);
|
||||
$options['sort_asc_label'] = array('default' => 'Asc');
|
||||
$options['sort_desc_label'] = array('default' => 'Desc');
|
||||
return $options;
|
||||
}
|
||||
|
||||
|
|
|
@ -36,9 +36,9 @@ class Boolean extends FieldPluginBase {
|
|||
protected function defineOptions() {
|
||||
$options = parent::defineOptions();
|
||||
$options['type'] = array('default' => 'yes-no');
|
||||
$options['type_custom_true'] = array('default' => '', 'translatable' => TRUE);
|
||||
$options['type_custom_false'] = array('default' => '', 'translatable' => TRUE);
|
||||
$options['not'] = array('default' => FALSE, 'bool' => TRUE);
|
||||
$options['type_custom_true'] = array('default' => '');
|
||||
$options['type_custom_false'] = array('default' => '');
|
||||
$options['not'] = array('default' => FALSE);
|
||||
|
||||
return $options;
|
||||
}
|
||||
|
|
|
@ -34,8 +34,8 @@ class Custom extends FieldPluginBase {
|
|||
$options = parent::defineOptions();
|
||||
|
||||
// Override the alter text option to always alter the text.
|
||||
$options['alter']['contains']['alter_text'] = array('default' => TRUE, 'bool' => TRUE);
|
||||
$options['hide_alter_empty'] = array('default' => FALSE, 'bool' => TRUE);
|
||||
$options['alter']['contains']['alter_text'] = array('default' => TRUE);
|
||||
$options['hide_alter_empty'] = array('default' => FALSE);
|
||||
return $options;
|
||||
}
|
||||
|
||||
|
|
|
@ -428,42 +428,42 @@ abstract class FieldPluginBase extends HandlerBase {
|
|||
protected function defineOptions() {
|
||||
$options = parent::defineOptions();
|
||||
|
||||
$options['label'] = array('default' => '', 'translatable' => TRUE);
|
||||
$options['label'] = array('default' => '');
|
||||
// Some styles (for example table) should have labels enabled by default.
|
||||
$style = $this->view->getStyle();
|
||||
if (isset($style) && $style->defaultFieldLabels()) {
|
||||
$options['label']['default'] = $this->definition['title'];
|
||||
}
|
||||
|
||||
$options['exclude'] = array('default' => FALSE, 'bool' => TRUE);
|
||||
$options['exclude'] = array('default' => FALSE);
|
||||
$options['alter'] = array(
|
||||
'contains' => array(
|
||||
'alter_text' => array('default' => FALSE, 'bool' => TRUE),
|
||||
'text' => array('default' => '', 'translatable' => TRUE),
|
||||
'make_link' => array('default' => FALSE, 'bool' => TRUE),
|
||||
'alter_text' => array('default' => FALSE),
|
||||
'text' => array('default' => ''),
|
||||
'make_link' => array('default' => FALSE),
|
||||
'path' => array('default' => ''),
|
||||
'absolute' => array('default' => FALSE, 'bool' => TRUE),
|
||||
'external' => array('default' => FALSE, 'bool' => TRUE),
|
||||
'replace_spaces' => array('default' => FALSE, 'bool' => TRUE),
|
||||
'path_case' => array('default' => 'none', 'translatable' => FALSE),
|
||||
'trim_whitespace' => array('default' => FALSE, 'bool' => TRUE),
|
||||
'alt' => array('default' => '', 'translatable' => TRUE),
|
||||
'absolute' => array('default' => FALSE),
|
||||
'external' => array('default' => FALSE),
|
||||
'replace_spaces' => array('default' => FALSE),
|
||||
'path_case' => array('default' => 'none'),
|
||||
'trim_whitespace' => array('default' => FALSE),
|
||||
'alt' => array('default' => ''),
|
||||
'rel' => array('default' => ''),
|
||||
'link_class' => array('default' => ''),
|
||||
'prefix' => array('default' => '', 'translatable' => TRUE),
|
||||
'suffix' => array('default' => '', 'translatable' => TRUE),
|
||||
'prefix' => array('default' => ''),
|
||||
'suffix' => array('default' => ''),
|
||||
'target' => array('default' => ''),
|
||||
'nl2br' => array('default' => FALSE, 'bool' => TRUE),
|
||||
'nl2br' => array('default' => FALSE),
|
||||
'max_length' => array('default' => ''),
|
||||
'word_boundary' => array('default' => TRUE, 'bool' => TRUE),
|
||||
'ellipsis' => array('default' => TRUE, 'bool' => TRUE),
|
||||
'more_link' => array('default' => FALSE, 'bool' => TRUE),
|
||||
'more_link_text' => array('default' => '', 'translatable' => TRUE),
|
||||
'word_boundary' => array('default' => TRUE),
|
||||
'ellipsis' => array('default' => TRUE),
|
||||
'more_link' => array('default' => FALSE),
|
||||
'more_link_text' => array('default' => ''),
|
||||
'more_link_path' => array('default' => ''),
|
||||
'strip_tags' => array('default' => FALSE, 'bool' => TRUE),
|
||||
'trim' => array('default' => FALSE, 'bool' => TRUE),
|
||||
'strip_tags' => array('default' => FALSE),
|
||||
'trim' => array('default' => FALSE),
|
||||
'preserve_tags' => array('default' => ''),
|
||||
'html' => array('default' => FALSE, 'bool' => TRUE),
|
||||
'html' => array('default' => FALSE),
|
||||
),
|
||||
);
|
||||
$options['element_type'] = array('default' => '');
|
||||
|
@ -471,17 +471,17 @@ abstract class FieldPluginBase extends HandlerBase {
|
|||
|
||||
$options['element_label_type'] = array('default' => '');
|
||||
$options['element_label_class'] = array('default' => '');
|
||||
$options['element_label_colon'] = array('default' => TRUE, 'bool' => TRUE);
|
||||
$options['element_label_colon'] = array('default' => TRUE);
|
||||
|
||||
$options['element_wrapper_type'] = array('default' => '');
|
||||
$options['element_wrapper_class'] = array('default' => '');
|
||||
|
||||
$options['element_default_classes'] = array('default' => TRUE, 'bool' => TRUE);
|
||||
$options['element_default_classes'] = array('default' => TRUE);
|
||||
|
||||
$options['empty'] = array('default' => '', 'translatable' => TRUE);
|
||||
$options['hide_empty'] = array('default' => FALSE, 'bool' => TRUE);
|
||||
$options['empty_zero'] = array('default' => FALSE, 'bool' => TRUE);
|
||||
$options['hide_alter_empty'] = array('default' => TRUE, 'bool' => TRUE);
|
||||
$options['empty'] = array('default' => '');
|
||||
$options['hide_empty'] = array('default' => FALSE);
|
||||
$options['empty_zero'] = array('default' => FALSE);
|
||||
$options['hide_alter_empty'] = array('default' => TRUE);
|
||||
|
||||
return $options;
|
||||
}
|
||||
|
|
|
@ -21,7 +21,7 @@ class LanguageField extends FieldPluginBase {
|
|||
|
||||
protected function defineOptions() {
|
||||
$options = parent::defineOptions();
|
||||
$options['native_language'] = array('default' => FALSE, 'bool' => TRUE);
|
||||
$options['native_language'] = array('default' => FALSE);
|
||||
|
||||
return $options;
|
||||
}
|
||||
|
|
|
@ -30,7 +30,7 @@ abstract class Links extends FieldPluginBase {
|
|||
$options = parent::defineOptions();
|
||||
|
||||
$options['fields'] = array('default' => array());
|
||||
$options['destination'] = array('default' => TRUE, 'bool' => TRUE);
|
||||
$options['destination'] = array('default' => TRUE);
|
||||
|
||||
return $options;
|
||||
}
|
||||
|
|
|
@ -48,7 +48,7 @@ class MachineName extends FieldPluginBase {
|
|||
|
||||
protected function defineOptions() {
|
||||
$options = parent::defineOptions();
|
||||
$options['machine_name'] = array('default' => FALSE, 'bool' => TRUE);
|
||||
$options['machine_name'] = array('default' => FALSE);
|
||||
|
||||
return $options;
|
||||
}
|
||||
|
|
|
@ -26,15 +26,15 @@ class Numeric extends FieldPluginBase {
|
|||
protected function defineOptions() {
|
||||
$options = parent::defineOptions();
|
||||
|
||||
$options['set_precision'] = array('default' => FALSE, 'bool' => TRUE);
|
||||
$options['set_precision'] = array('default' => FALSE);
|
||||
$options['precision'] = array('default' => 0);
|
||||
$options['decimal'] = array('default' => '.', 'translatable' => TRUE);
|
||||
$options['separator'] = array('default' => ',', 'translatable' => TRUE);
|
||||
$options['format_plural'] = array('default' => FALSE, 'bool' => TRUE);
|
||||
$options['decimal'] = array('default' => '.');
|
||||
$options['separator'] = array('default' => ',');
|
||||
$options['format_plural'] = array('default' => FALSE);
|
||||
$options['format_plural_singular'] = array('default' => '1');
|
||||
$options['format_plural_plural'] = array('default' => '@count');
|
||||
$options['prefix'] = array('default' => '', 'translatable' => TRUE);
|
||||
$options['suffix'] = array('default' => '', 'translatable' => TRUE);
|
||||
$options['prefix'] = array('default' => '');
|
||||
$options['suffix'] = array('default' => '');
|
||||
|
||||
return $options;
|
||||
}
|
||||
|
|
|
@ -22,7 +22,7 @@ class Url extends FieldPluginBase {
|
|||
protected function defineOptions() {
|
||||
$options = parent::defineOptions();
|
||||
|
||||
$options['display_as_link'] = array('default' => TRUE, 'bool' => TRUE);
|
||||
$options['display_as_link'] = array('default' => TRUE);
|
||||
|
||||
return $options;
|
||||
}
|
||||
|
|
|
@ -119,18 +119,18 @@ abstract class FilterPluginBase extends HandlerBase {
|
|||
$options['operator'] = array('default' => '=');
|
||||
$options['value'] = array('default' => '');
|
||||
$options['group'] = array('default' => '1');
|
||||
$options['exposed'] = array('default' => FALSE, 'bool' => TRUE);
|
||||
$options['exposed'] = array('default' => FALSE);
|
||||
$options['expose'] = array(
|
||||
'contains' => array(
|
||||
'operator_id' => array('default' => FALSE),
|
||||
'label' => array('default' => '', 'translatable' => TRUE),
|
||||
'description' => array('default' => '', 'translatable' => TRUE),
|
||||
'use_operator' => array('default' => FALSE, 'bool' => TRUE),
|
||||
'label' => array('default' => ''),
|
||||
'description' => array('default' => ''),
|
||||
'use_operator' => array('default' => FALSE),
|
||||
'operator' => array('default' => ''),
|
||||
'identifier' => array('default' => ''),
|
||||
'required' => array('default' => FALSE, 'bool' => TRUE),
|
||||
'remember' => array('default' => FALSE, 'bool' => TRUE),
|
||||
'multiple' => array('default' => FALSE, 'bool' => TRUE),
|
||||
'required' => array('default' => FALSE),
|
||||
'remember' => array('default' => FALSE),
|
||||
'multiple' => array('default' => FALSE),
|
||||
'remember_roles' => array('default' => array(
|
||||
DRUPAL_AUTHENTICATED_RID => DRUPAL_AUTHENTICATED_RID,
|
||||
)),
|
||||
|
@ -145,15 +145,15 @@ abstract class FilterPluginBase extends HandlerBase {
|
|||
// an identifier and other settings like the widget and the label.
|
||||
// This settings are saved in another array to allow users to switch
|
||||
// between a normal filter and a group of filters with a single click.
|
||||
$options['is_grouped'] = array('default' => FALSE, 'bool' => TRUE);
|
||||
$options['is_grouped'] = array('default' => FALSE);
|
||||
$options['group_info'] = array(
|
||||
'contains' => array(
|
||||
'label' => array('default' => '', 'translatable' => TRUE),
|
||||
'description' => array('default' => '', 'translatable' => TRUE),
|
||||
'label' => array('default' => ''),
|
||||
'description' => array('default' => ''),
|
||||
'identifier' => array('default' => ''),
|
||||
'optional' => array('default' => TRUE, 'bool' => TRUE),
|
||||
'optional' => array('default' => TRUE),
|
||||
'widget' => array('default' => 'select'),
|
||||
'multiple' => array('default' => FALSE, 'bool' => TRUE),
|
||||
'multiple' => array('default' => FALSE),
|
||||
'remember' => array('default' => 0),
|
||||
'default_group' => array('default' => 'All'),
|
||||
'default_group_multiple' => array('default' => array()),
|
||||
|
|
|
@ -102,7 +102,7 @@ class InOperator extends FilterPluginBase {
|
|||
|
||||
$options['operator']['default'] = 'in';
|
||||
$options['value']['default'] = array();
|
||||
$options['expose']['contains']['reduce'] = array('default' => FALSE, 'bool' => TRUE);
|
||||
$options['expose']['contains']['reduce'] = array('default' => FALSE);
|
||||
|
||||
return $options;
|
||||
}
|
||||
|
|
|
@ -27,7 +27,7 @@ class String extends FilterPluginBase {
|
|||
protected function defineOptions() {
|
||||
$options = parent::defineOptions();
|
||||
|
||||
$options['expose']['contains']['required'] = array('default' => FALSE, 'bool' => TRUE);
|
||||
$options['expose']['contains']['required'] = array('default' => FALSE);
|
||||
|
||||
return $options;
|
||||
}
|
||||
|
|
|
@ -34,8 +34,8 @@ class Full extends SqlBase {
|
|||
// Use the same default quantity that core uses by default.
|
||||
$options['quantity'] = array('default' => 9);
|
||||
|
||||
$options['tags']['contains']['first'] = array('default' => '« first', 'translatable' => TRUE);
|
||||
$options['tags']['contains']['last'] = array('default' => 'last »', 'translatable' => TRUE);
|
||||
$options['tags']['contains']['first'] = array('default' => '« first');
|
||||
$options['tags']['contains']['last'] = array('default' => 'last »');
|
||||
|
||||
return $options;
|
||||
}
|
||||
|
|
|
@ -22,20 +22,20 @@ abstract class SqlBase extends PagerPluginBase {
|
|||
$options['total_pages'] = array('default' => '');
|
||||
$options['expose'] = array(
|
||||
'contains' => array(
|
||||
'items_per_page' => array('default' => FALSE, 'bool' => TRUE),
|
||||
'items_per_page_label' => array('default' => 'Items per page', 'translatable' => TRUE),
|
||||
'items_per_page' => array('default' => FALSE),
|
||||
'items_per_page_label' => array('default' => 'Items per page'),
|
||||
'items_per_page_options' => array('default' => '5, 10, 25, 50'),
|
||||
'items_per_page_options_all' => array('default' => FALSE, 'bool' => TRUE),
|
||||
'items_per_page_options_all_label' => array('default' => '- All -', 'translatable' => TRUE),
|
||||
'items_per_page_options_all' => array('default' => FALSE),
|
||||
'items_per_page_options_all_label' => array('default' => '- All -'),
|
||||
|
||||
'offset' => array('default' => FALSE, 'bool' => TRUE),
|
||||
'offset_label' => array('default' => 'Offset', 'translatable' => TRUE),
|
||||
'offset' => array('default' => FALSE),
|
||||
'offset_label' => array('default' => 'Offset'),
|
||||
),
|
||||
);
|
||||
$options['tags'] = array(
|
||||
'contains' => array(
|
||||
'previous' => array('default' => '‹ previous', 'translatable' => TRUE),
|
||||
'next' => array('default' => 'next ›', 'translatable' => TRUE),
|
||||
'previous' => array('default' => '‹ previous'),
|
||||
'next' => array('default' => 'next ›'),
|
||||
),
|
||||
);
|
||||
return $options;
|
||||
|
|
|
@ -178,16 +178,12 @@ class Sql extends QueryPluginBase {
|
|||
$options = parent::defineOptions();
|
||||
$options['disable_sql_rewrite'] = array(
|
||||
'default' => FALSE,
|
||||
'translatable' => FALSE,
|
||||
'bool' => TRUE,
|
||||
);
|
||||
$options['distinct'] = array(
|
||||
'default' => FALSE,
|
||||
'bool' => TRUE,
|
||||
);
|
||||
$options['replica'] = array(
|
||||
'default' => FALSE,
|
||||
'bool' => TRUE,
|
||||
);
|
||||
$options['query_comment'] = array(
|
||||
'default' => '',
|
||||
|
|
|
@ -72,7 +72,7 @@ class GroupwiseMax extends RelationshipPluginBase {
|
|||
$options['subquery_sort'] = array('default' => NULL);
|
||||
// Descending more useful.
|
||||
$options['subquery_order'] = array('default' => 'DESC');
|
||||
$options['subquery_regenerate'] = array('default' => FALSE, 'bool' => TRUE);
|
||||
$options['subquery_regenerate'] = array('default' => FALSE);
|
||||
$options['subquery_view'] = array('default' => FALSE);
|
||||
$options['subquery_namespace'] = array('default' => FALSE);
|
||||
|
||||
|
|
|
@ -97,7 +97,7 @@ abstract class RelationshipPluginBase extends HandlerBase {
|
|||
}
|
||||
|
||||
$options['admin_label']['default'] = $label;
|
||||
$options['required'] = array('default' => FALSE, 'bool' => TRUE);
|
||||
$options['required'] = array('default' => FALSE);
|
||||
|
||||
return $options;
|
||||
}
|
||||
|
|
|
@ -39,8 +39,8 @@ class Fields extends RowPluginBase {
|
|||
|
||||
$options['inline'] = array('default' => array());
|
||||
$options['separator'] = array('default' => '');
|
||||
$options['hide_empty'] = array('default' => FALSE, 'bool' => TRUE);
|
||||
$options['default_field_elements'] = array('default' => TRUE, 'bool' => TRUE);
|
||||
$options['hide_empty'] = array('default' => FALSE);
|
||||
$options['default_field_elements'] = array('default' => TRUE);
|
||||
return $options;
|
||||
}
|
||||
|
||||
|
|
|
@ -37,7 +37,7 @@ class RssFields extends RowPluginBase {
|
|||
$options['creator_field'] = array('default' => '');
|
||||
$options['date_field'] = array('default' => '');
|
||||
$options['guid_field_options']['contains']['guid_field'] = array('default' => '');
|
||||
$options['guid_field_options']['contains']['guid_field_is_permalink'] = array('default' => TRUE, 'bool' => TRUE);
|
||||
$options['guid_field_options']['contains']['guid_field_is_permalink'] = array('default' => TRUE);
|
||||
return $options;
|
||||
}
|
||||
|
||||
|
|
|
@ -46,10 +46,10 @@ abstract class SortPluginBase extends HandlerBase {
|
|||
$options = parent::defineOptions();
|
||||
|
||||
$options['order'] = array('default' => 'ASC');
|
||||
$options['exposed'] = array('default' => FALSE, 'bool' => TRUE);
|
||||
$options['exposed'] = array('default' => FALSE);
|
||||
$options['expose'] = array(
|
||||
'contains' => array(
|
||||
'label' => array('default' => '', 'translatable' => TRUE),
|
||||
'label' => array('default' => ''),
|
||||
),
|
||||
);
|
||||
return $options;
|
||||
|
|
|
@ -29,8 +29,8 @@ class DefaultSummary extends StylePluginBase {
|
|||
$options = parent::defineOptions();
|
||||
|
||||
$options['base_path'] = array('default' => '');
|
||||
$options['count'] = array('default' => TRUE, 'bool' => TRUE);
|
||||
$options['override'] = array('default' => FALSE, 'bool' => TRUE);
|
||||
$options['count'] = array('default' => TRUE);
|
||||
$options['override'] = array('default' => FALSE);
|
||||
$options['items_per_page'] = array('default' => 25);
|
||||
|
||||
return $options;
|
||||
|
|
|
@ -61,7 +61,6 @@ abstract class Mapping extends StylePluginBase {
|
|||
if (!empty($value['#toggle'])) {
|
||||
$options['mapping']['contains']["toggle_$key"] = array(
|
||||
'default' => FALSE,
|
||||
'bool' => TRUE,
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -69,7 +69,7 @@ class Rss extends StylePluginBase {
|
|||
protected function defineOptions() {
|
||||
$options = parent::defineOptions();
|
||||
|
||||
$options['description'] = array('default' => '', 'translatable' => TRUE);
|
||||
$options['description'] = array('default' => '');
|
||||
|
||||
return $options;
|
||||
}
|
||||
|
|
|
@ -254,9 +254,9 @@ abstract class StylePluginBase extends PluginBase {
|
|||
$options['grouping'] = array('default' => array());
|
||||
if ($this->usesRowClass()) {
|
||||
$options['row_class'] = array('default' => '');
|
||||
$options['default_row_class'] = array('default' => TRUE, 'bool' => TRUE);
|
||||
$options['default_row_class'] = array('default' => TRUE);
|
||||
}
|
||||
$options['uses_fields'] = array('default' => FALSE, 'bool' => TRUE);
|
||||
$options['uses_fields'] = array('default' => FALSE);
|
||||
|
||||
return $options;
|
||||
}
|
||||
|
|
|
@ -74,13 +74,13 @@ class Table extends StylePluginBase {
|
|||
$options['columns'] = array('default' => array());
|
||||
$options['default'] = array('default' => '');
|
||||
$options['info'] = array('default' => array());
|
||||
$options['override'] = array('default' => TRUE, 'bool' => TRUE);
|
||||
$options['sticky'] = array('default' => FALSE, 'bool' => TRUE);
|
||||
$options['override'] = array('default' => TRUE);
|
||||
$options['sticky'] = array('default' => FALSE);
|
||||
$options['order'] = array('default' => 'asc');
|
||||
$options['caption'] = array('default' => '', 'translatable' => TRUE);
|
||||
$options['summary'] = array('default' => '', 'translatable' => TRUE);
|
||||
$options['description'] = array('default' => '', 'translatable' => TRUE);
|
||||
$options['empty_table'] = array('default' => FALSE, 'bool' => TRUE);
|
||||
$options['caption'] = array('default' => '');
|
||||
$options['summary'] = array('default' => '');
|
||||
$options['description'] = array('default' => '');
|
||||
$options['empty_table'] = array('default' => FALSE);
|
||||
|
||||
return $options;
|
||||
}
|
||||
|
|
|
@ -26,7 +26,7 @@ class UnformattedSummary extends DefaultSummary {
|
|||
|
||||
protected function defineOptions() {
|
||||
$options = parent::defineOptions();
|
||||
$options['inline'] = array('default' => FALSE, 'bool' => TRUE);
|
||||
$options['inline'] = array('default' => FALSE);
|
||||
$options['separator'] = array('default' => '');
|
||||
return $options;
|
||||
}
|
||||
|
|
|
@ -24,7 +24,7 @@ class StaticTest extends AccessPluginBase {
|
|||
|
||||
protected function defineOptions() {
|
||||
$options = parent::defineOptions();
|
||||
$options['access'] = array('default' => FALSE, 'bool' => TRUE);
|
||||
$options['access'] = array('default' => FALSE);
|
||||
|
||||
return $options;
|
||||
}
|
||||
|
|
|
@ -23,7 +23,7 @@ class FilterTest extends FilterPluginBase {
|
|||
protected function defineOptions() {
|
||||
$options = parent::defineOptions();
|
||||
|
||||
$options['test_enable'] = array('default' => TRUE, 'bool' => TRUE);
|
||||
$options['test_enable'] = array('default' => TRUE);
|
||||
return $options;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue