abstract protected function RangeFormatterBase::formatNumber in Range 8
Formats a number.
Parameters
mixed $number: The numeric value.
Return value
string The formatted number.
2 calls to RangeFormatterBase::formatNumber()
- RangeFormatterBase::settingsSummary in src/
Plugin/ Field/ FieldFormatter/ RangeFormatterBase.php - Returns a short summary for the current formatter settings.
- RangeFormatterBase::viewElements in src/
Plugin/ Field/ FieldFormatter/ RangeFormatterBase.php - Builds a renderable array for a field value.
3 methods override RangeFormatterBase::formatNumber()
- RangeIntegerFormatter::formatNumber in src/
Plugin/ Field/ FieldFormatter/ RangeIntegerFormatter.php - Formats a number.
- RangeIntegerSprintfFormatter::formatNumber in src/
Plugin/ Field/ FieldFormatter/ RangeIntegerSprintfFormatter.php - Formats a number.
- RangeUnformattedFormatter::formatNumber in src/
Plugin/ Field/ FieldFormatter/ RangeUnformattedFormatter.php - Formats a number.
File
- src/
Plugin/ Field/ FieldFormatter/ RangeFormatterBase.php, line 245
Class
- RangeFormatterBase
- Parent plugin for decimal and integer range formatters.
Namespace
Drupal\range\Plugin\Field\FieldFormatterCode
protected abstract function formatNumber($number);