public function settingsForm(array
$form, FormStateInterface
$form_state) { $element['progress_indicator'
] =
[ '#type' => 'radios',
'#title' =>
$this->
t('Progress indicator'
),
'#options' =>
[ 'throbber' =>
$this->
t('Throbber'
),
'bar' =>
$this->
t('Bar with progress meter'
),
],
'#default_value' =>
$this->
getSetting('progress_indicator'
),
'#description' =>
$this->
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;
} /**
* {@inheritdoc}
*/
public function settingsSummary() { $summary =
[];
$summary[] =
$this->
t('Progress indicator: @progress_indicator',
['@progress_indicator' =>
$this->
getSetting('progress_indicator'
)]);
return $summary;
}