You are here

public static function SmartDatePlainFormatter::defaultSettings in Smart Date 3.1.x

Same name and namespace in other branches
  1. 8.2 src/Plugin/Field/FieldFormatter/SmartDatePlainFormatter.php \Drupal\smart_date\Plugin\Field\FieldFormatter\SmartDatePlainFormatter::defaultSettings()
  2. 8 src/Plugin/Field/FieldFormatter/SmartDatePlainFormatter.php \Drupal\smart_date\Plugin\Field\FieldFormatter\SmartDatePlainFormatter::defaultSettings()
  3. 3.x src/Plugin/Field/FieldFormatter/SmartDatePlainFormatter.php \Drupal\smart_date\Plugin\Field\FieldFormatter\SmartDatePlainFormatter::defaultSettings()
  4. 3.0.x src/Plugin/Field/FieldFormatter/SmartDatePlainFormatter.php \Drupal\smart_date\Plugin\Field\FieldFormatter\SmartDatePlainFormatter::defaultSettings()
  5. 3.2.x src/Plugin/Field/FieldFormatter/SmartDatePlainFormatter.php \Drupal\smart_date\Plugin\Field\FieldFormatter\SmartDatePlainFormatter::defaultSettings()
  6. 3.3.x src/Plugin/Field/FieldFormatter/SmartDatePlainFormatter.php \Drupal\smart_date\Plugin\Field\FieldFormatter\SmartDatePlainFormatter::defaultSettings()
  7. 3.4.x src/Plugin/Field/FieldFormatter/SmartDatePlainFormatter.php \Drupal\smart_date\Plugin\Field\FieldFormatter\SmartDatePlainFormatter::defaultSettings()

Defines the default settings for this plugin.

Return value

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

Overrides DateTimeFormatterBase::defaultSettings

File

src/Plugin/Field/FieldFormatter/SmartDatePlainFormatter.php, line 32

Class

SmartDatePlainFormatter
Plugin implementation of the 'Plain' formatter for 'smartdate' fields.

Namespace

Drupal\smart_date\Plugin\Field\FieldFormatter

Code

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