abstract protected function DefaultNumberFormatter::numberFormat

Formats a number.

Parameters

mixed $number: The numeric value.

Return value

string The formatted number.

2 calls to DefaultNumberFormatter::numberFormat()
DefaultNumberFormatter::settingsSummary in drupal/core/modules/field/modules/number/lib/Drupal/number/Plugin/field/formatter/DefaultNumberFormatter.php
Implements Drupal\field\Plugin\Type\Formatter\FormatterInterface::settingsForm().
DefaultNumberFormatter::viewElements in drupal/core/modules/field/modules/number/lib/Drupal/number/Plugin/field/formatter/DefaultNumberFormatter.php
Implements Drupal\field\Plugin\Type\Formatter\FormatterInterface::viewElements().
2 methods override DefaultNumberFormatter::numberFormat()
NumberDecimalFormatter::numberFormat in drupal/core/modules/field/modules/number/lib/Drupal/number/Plugin/field/formatter/NumberDecimalFormatter.php
Overrides Drupal\number\Plugin\field\formatter\DefaultNumberFormatter::numberFormat().
NumberIntegerFormatter::numberFormat in drupal/core/modules/field/modules/number/lib/Drupal/number/Plugin/field/formatter/NumberIntegerFormatter.php
Overrides Drupal\number\Plugin\field\formatter\DefaultNumberFormatter::numberFormat().

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);