Formats a number.
Parameters
mixed $number:
The numeric value.
Return value
string
The formatted number.
File
- drupal/core/modules/field/modules/number/lib/Drupal/number/Plugin/field/formatter/DefaultNumberFormatter.php, line 97
- Definition of Drupal\number\Plugin\field\formatter\DefaultNumberFormatter.
Class
- DefaultNumberFormatter
- Parent plugin for decimal and integer formatters
Namespace
Drupal\number\Plugin\field\formatter
Code
protected abstract function numberFormat($number);