You are here

public function LegacyNumberFormatter::setGroupingUsed in Price 8

Same name and namespace in other branches
  1. 3.x src/LegacyNumberFormatter.php \Drupal\price\LegacyNumberFormatter::setGroupingUsed()
  2. 3.0.x src/LegacyNumberFormatter.php \Drupal\price\LegacyNumberFormatter::setGroupingUsed()

Sets whether grouping is used.

Parameters

bool $grouping_used: Whether grouping is used.

Return value

$this

File

src/LegacyNumberFormatter.php, line 130

Class

LegacyNumberFormatter
Provides a legacy number formatter for the deprecated NumberFormatterFactory.

Namespace

Drupal\price

Code

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