You are here

public static function FractionFormatter::defaultSettings in Fraction 2.x

Same name and namespace in other branches
  1. 8 src/Plugin/Field/FieldFormatter/FractionFormatter.php \Drupal\fraction\Plugin\Field\FieldFormatter\FractionFormatter::defaultSettings()

Defines the default settings for this plugin.

Return value

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

Overrides FractionFormatterBase::defaultSettings

File

src/Plugin/Field/FieldFormatter/FractionFormatter.php, line 24

Class

FractionFormatter
Plugin implementation of the 'fraction' formatter.

Namespace

Drupal\fraction\Plugin\Field\FieldFormatter

Code

public static function defaultSettings() {
  return [
    'separator' => '/',
  ] + parent::defaultSettings();
}