public function ComputedStringFormatter::settingsForm in Computed Field 3.x
Same name and namespace in other branches
- 8.2 src/Plugin/Field/FieldFormatter/ComputedStringFormatter.php \Drupal\computed_field\Plugin\Field\FieldFormatter\ComputedStringFormatter::settingsForm()
Overrides ComputedCacheFormatterTrait::settingsForm
File
- src/
Plugin/ Field/ FieldFormatter/ ComputedStringFormatter.php, line 33
Class
- ComputedStringFormatter
- Plugin implementation of the 'computed_string' formatter.
Namespace
Drupal\computed_field\Plugin\Field\FieldFormatterCode
public function settingsForm(array $form, FormStateInterface $form_state) {
return [
'sanitized' => [
'#type' => 'checkbox',
'#title' => t('Sanitized'),
'#default_value' => $this
->getSetting('sanitized'),
],
] + parent::settingsForm($form, $form_state);
}