public function LegacyNumberFormatter::setGroupingUsed in Price 3.x
Same name and namespace in other branches
- 8 src/LegacyNumberFormatter.php \Drupal\price\LegacyNumberFormatter::setGroupingUsed()
- 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\priceCode
public function setGroupingUsed($grouping_used) {
$this->options['use_grouping'] = $grouping_used;
return $this;
}