function NumericFormatterBase::numberFormat

Same name and namespace in other branches
  1. 11.x core/lib/Drupal/Core/Field/Plugin/Field/FieldFormatter/NumericFormatterBase.php \Drupal\Core\Field\Plugin\Field\FieldFormatter\NumericFormatterBase::numberFormat()

Formats a number.

Parameters

mixed $number: The numeric value.

Return value

string The formatted number.

File

core/lib/Drupal/Core/Field/Plugin/Field/FieldFormatter/NumericFormatterBase.php, line 97

Class

NumericFormatterBase
Parent plugin for decimal and integer formatters.

Namespace

Drupal\Core\Field\Plugin\Field\FieldFormatter

Code

abstract protected function numberFormat($number);

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.