You are here

public static function HideableBoolean::defaultSettings in farmOS 2.x

Defines the default settings for this plugin.

Return value

array A list of default settings, keyed by the setting name.

Overrides BooleanFormatter::defaultSettings

File

modules/core/field/src/Plugin/Field/FieldFormatter/HideableBoolean.php, line 28

Class

HideableBoolean
Plugin implementation of the 'hideable_boolean' formatter.

Namespace

Drupal\farm_field\Plugin\Field\FieldFormatter

Code

public static function defaultSettings() {
  $settings = parent::defaultSettings();
  $settings['hide_if_true'] = FALSE;
  $settings['hide_if_false'] = FALSE;
  return $settings;
}