public function DefaultNumberFormatter::settingsSummary

Implements Drupal\field\Plugin\Type\Formatter\FormatterInterface::settingsForm().

Overrides FormatterBase::settingsSummary

File

drupal/core/modules/field/modules/number/lib/Drupal/number/Plugin/field/formatter/DefaultNumberFormatter.php, line 53
Definition of Drupal\number\Plugin\field\formatter\DefaultNumberFormatter.

Class

DefaultNumberFormatter
Parent plugin for decimal and integer formatters

Namespace

Drupal\number\Plugin\field\formatter

Code

public function settingsSummary() {
  $summary = array();
  $summary[] = $this
    ->numberFormat(1234.123456789);
  if ($this
    ->getSetting('prefix_suffix')) {
    $summary[] = t('Display with prefix and suffix.');
  }
  return implode('<br />', $summary);
}