public function FileWidget::settingsForm

Implements \Drupal\field\Plugin\Type\Widget\WidgetInterface::settingsForm().

Overrides WidgetBase::settingsForm

1 call to FileWidget::settingsForm()
ImageWidget::settingsForm in drupal/core/modules/image/lib/Drupal/image/Plugin/field/widget/ImageWidget.php
Overrides \Drupal\file\Plugin\field\widget\FileWidget::settingsForm().
1 method overrides FileWidget::settingsForm()
ImageWidget::settingsForm in drupal/core/modules/image/lib/Drupal/image/Plugin/field/widget/ImageWidget.php
Overrides \Drupal\file\Plugin\field\widget\FileWidget::settingsForm().

File

drupal/core/modules/file/lib/Drupal/file/Plugin/field/widget/FileWidget.php, line 36
Contains \Drupal\file\Plugin\field\widget\FileWidget.

Class

FileWidget
Plugin implementation of the 'file_generic' widget.

Namespace

Drupal\file\Plugin\field\widget

Code

public function settingsForm(array $form, array &$form_state) {
  $element['progress_indicator'] = array(
    '#type' => 'radios',
    '#title' => t('Progress indicator'),
    '#options' => array(
      'throbber' => t('Throbber'),
      'bar' => t('Bar with progress meter'),
    ),
    '#default_value' => $this
      ->getSetting('progress_indicator'),
    '#description' => t('The throbber display does not show the status of uploads but takes up less space. The progress bar is helpful for monitoring progress on large uploads.'),
    '#weight' => 16,
    '#access' => file_progress_implementation(),
  );
  return $element;
}