Implements Drupal\field\Plugin\Type\Formatter\FormatterInterface::settingsForm().
Overrides FormatterBase::settingsForm
public function settingsForm(array $form, array &$form_state) {
$options = array(
'' => t('<none>'),
'.' => t('Decimal point'),
',' => t('Comma'),
' ' => t('Space'),
chr(8201) => t('Thin space'),
"'" => t('Apostrophe'),
);
$elements['thousand_separator'] = array(
'#type' => 'select',
'#title' => t('Thousand marker'),
'#options' => $options,
'#default_value' => $this
->getSetting('thousand_separator'),
'#weight' => 0,
);
$elements['prefix_suffix'] = array(
'#type' => 'checkbox',
'#title' => t('Display prefix and suffix.'),
'#default_value' => $this
->getSetting('prefix_suffix'),
'#weight' => 10,
);
return $elements;
}