You are here

protected function RangeUnformattedFormatter::formatNumber in Range 8

Formats a number.

Parameters

mixed $number: The numeric value.

Return value

string The formatted number.

Overrides RangeFormatterBase::formatNumber

File

src/Plugin/Field/FieldFormatter/RangeUnformattedFormatter.php, line 24

Class

RangeUnformattedFormatter
Plugin implementation of the 'range_unformatted' formatter.

Namespace

Drupal\range\Plugin\Field\FieldFormatter

Code

protected function formatNumber($number) {
  return $number;
}