public function ComputedStringFormatter::settingsForm in Computed Field 8.2
Same name and namespace in other branches
- 3.x src/Plugin/Field/FieldFormatter/ComputedStringFormatter.php \Drupal\computed_field\Plugin\Field\FieldFormatter\ComputedStringFormatter::settingsForm()
Overrides ComputedCacheFormatterTrait::settingsForm
1 call to ComputedStringFormatter::settingsForm()
- ComputedPhpFormatterPhp::settingsForm in computed_field_php_formatter/
src/ Plugin/ Field/ FieldFormatter/ ComputedPhpFormatterPhp.php
1 method overrides ComputedStringFormatter::settingsForm()
- ComputedPhpFormatterPhp::settingsForm in computed_field_php_formatter/
src/ Plugin/ Field/ FieldFormatter/ ComputedPhpFormatterPhp.php
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);
}