public function S3fsCorsImageWidget::settingsSummary in S3 File System CORS Upload 8
Returns a short summary for the current widget settings.
If an empty result is returned, a UI can still be provided to display a settings form in case the widget has configurable settings.
Return value
array A short summary of the widget settings.
Overrides ImageWidget::settingsSummary
File
- src/
Plugin/ Field/ FieldWidget/ S3fsCorsImageWidget.php, line 86
Class
- S3fsCorsImageWidget
- Plugin implementation of the 's3fs_cors_widget' widget.
Namespace
Drupal\s3fs_cors\Plugin\Field\FieldWidgetCode
public function settingsSummary() {
$summary = parent::settingsSummary();
if ($this
->getSetting('max_filesize')) {
$summary[] = $this
->t('Max upload filesize: @max_filesize (override field configuration value).', [
'@max_filesize' => $this
->getSetting('max_filesize'),
]);
}
else {
$summary[] = $this
->t('Max upload filesize not specified (use field configuration value).');
}
return $summary;
}