function NumericField::submitOptionsForm
Same name in other branches
- 9 core/modules/views/src/Plugin/views/field/NumericField.php \Drupal\views\Plugin\views\field\NumericField::submitOptionsForm()
- 8.9.x core/modules/views/src/Plugin/views/field/NumericField.php \Drupal\views\Plugin\views\field\NumericField::submitOptionsForm()
- 10 core/modules/views/src/Plugin/views/field/NumericField.php \Drupal\views\Plugin\views\field\NumericField::submitOptionsForm()
Overrides FieldPluginBase::submitOptionsForm
File
-
core/
modules/ views/ src/ Plugin/ views/ field/ NumericField.php, line 139
Class
- NumericField
- Render a field as a numeric value.
Namespace
Drupal\views\Plugin\views\fieldCode
public function submitOptionsForm(&$form, FormStateInterface $form_state) {
// Merge plural format options into one string and drop the individual
// option values.
$options =& $form_state->getValue('options');
$options['format_plural_string'] = implode(PoItem::DELIMITER, $options['format_plural_values']);
unset($options['format_plural_values']);
parent::submitOptionsForm($form, $form_state);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.