You are here

public static function HMSFormatter::defaultSettings in HMS Field 8

Defines the default settings for this plugin.

Return value

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

Overrides PluginSettingsBase::defaultSettings

File

src/Plugin/Field/FieldFormatter/HMSFormatter.php, line 60
Contains \Drupal\hms_field\Plugin\Field\FieldFormatter\HMSFormatter.

Class

HMSFormatter
Plugin implementation of the 'hms_default_formatter' formatter.

Namespace

Drupal\hms_field\Plugin\Field\FieldFormatter

Code

public static function defaultSettings() {
  return array(
    'format' => 'h:mm',
    'leading_zero' => TRUE,
  ) + parent::defaultSettings();
}