public function FileLinkFormatterTrait::settingsForm in File Link 8
Same name and namespace in other branches
- 2.0.x src/FileLinkFormatterTrait.php \Drupal\file_link\FileLinkFormatterTrait::settingsForm()
File
- src/
FileLinkFormatterTrait.php, line 24
Class
- FileLinkFormatterTrait
- Provide common methods for file link formatters.
Namespace
Drupal\file_linkCode
public function settingsForm(array $form, FormStateInterface $form_state) {
$elements = parent::settingsForm($form, $form_state);
$elements['format_size'] = [
'#type' => 'checkbox',
'#title' => $this
->t('Format size value'),
'#default_value' => $this
->getSetting('format_size'),
];
return $elements;
}