You are here

public function NumberFormat::defaultConfiguration in Tamper 8

Gets default configuration for this plugin.

Return value

array An associative array with the default configuration.

Overrides TamperBase::defaultConfiguration

File

src/Plugin/Tamper/NumberFormat.php, line 29

Class

NumberFormat
Plugin implementation for number format.

Namespace

Drupal\tamper\Plugin\Tamper

Code

public function defaultConfiguration() {
  $config = parent::defaultConfiguration();
  $config[self::SETTING_DECIMALS] = 0;
  $config[self::SETTING_DEC_POINT] = '.';
  $config[self::SETTING_THOUSANDS_SEP] = ',';
  return $config;
}