function BooleanFormatter::defaultSettings
Overrides PluginSettingsBase::defaultSettings
File
- 
              core/lib/ Drupal/ Core/ Field/ Plugin/ Field/ FieldFormatter/ BooleanFormatter.php, line 25 
Class
- BooleanFormatter
- Plugin implementation of the 'boolean' formatter.
Namespace
Drupal\Core\Field\Plugin\Field\FieldFormatterCode
public static function defaultSettings() {
  $settings = [];
  // Fall back to field settings by default.
  $settings['format'] = 'default';
  $settings['format_custom_false'] = '';
  $settings['format_custom_true'] = '';
  return $settings;
}Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.
