function FileWidget::settingsSummary

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

Overrides WidgetBase::settingsSummary

1 call to FileWidget::settingsSummary()
ImageWidget::settingsSummary in core/modules/image/src/Plugin/Field/FieldWidget/ImageWidget.php
Returns a short summary for the current widget settings.
1 method overrides FileWidget::settingsSummary()
ImageWidget::settingsSummary in core/modules/image/src/Plugin/Field/FieldWidget/ImageWidget.php
Returns a short summary for the current widget settings.

File

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

Class

FileWidget
Plugin implementation of the 'file_generic' widget.

Namespace

Drupal\file\Plugin\Field\FieldWidget

Code

public function settingsSummary() {
    $summary = [];
    $summary[] = $this->t('Progress indicator: @progress_indicator', [
        '@progress_indicator' => $this->getSetting('progress_indicator'),
    ]);
    return $summary;
}

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