function FileWidget::defaultSettings

Same name in other branches
  1. 9 core/modules/file/src/Plugin/Field/FieldWidget/FileWidget.php \Drupal\file\Plugin\Field\FieldWidget\FileWidget::defaultSettings()
  2. 8.9.x core/modules/file/src/Plugin/Field/FieldWidget/FileWidget.php \Drupal\file\Plugin\Field\FieldWidget\FileWidget::defaultSettings()
  3. 11.x core/modules/file/src/Plugin/Field/FieldWidget/FileWidget.php \Drupal\file\Plugin\Field\FieldWidget\FileWidget::defaultSettings()

Overrides PluginSettingsBase::defaultSettings

1 call to FileWidget::defaultSettings()
ImageWidget::defaultSettings in core/modules/image/src/Plugin/Field/FieldWidget/ImageWidget.php
Defines the default settings for this plugin.
1 method overrides FileWidget::defaultSettings()
ImageWidget::defaultSettings in core/modules/image/src/Plugin/Field/FieldWidget/ImageWidget.php
Defines the default settings for this plugin.

File

core/modules/file/src/Plugin/Field/FieldWidget/FileWidget.php, line 53

Class

FileWidget
Plugin implementation of the 'file_generic' widget.

Namespace

Drupal\file\Plugin\Field\FieldWidget

Code

public static function defaultSettings() {
    return [
        'progress_indicator' => 'throbber',
    ] + parent::defaultSettings();
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.