You are here

public function LegacyNumberFormatter::setGroupingUsed in Commerce Core 8.2

Sets whether grouping is used.

Parameters

bool $grouping_used: Whether grouping is used.

Return value

$this

File

modules/price/src/LegacyNumberFormatter.php, line 130

Class

LegacyNumberFormatter
Provides a legacy number formatter for the deprecated NumberFormatterFactory.

Namespace

Drupal\commerce_price

Code

public function setGroupingUsed($grouping_used) {
  $this->options['use_grouping'] = $grouping_used;
  return $this;
}