Issue #3037204 by starlight-sparkle, atowl, dww, kim.pepper: If upload...
Issue #3037204 by starlight-sparkle, atowl, dww, kim.pepper: If upload progress extension is not available, disable the file field widget settings
(cherry picked from commit 88aafb36)
'#markup'=>$this->t('The UploadProgress PHP extension must be enabled to configure the progress indicator. Check the <a href=":status">status report</a> for more information.',[':status'=>Url::fromRoute('system.status')->toString()]),
'#weight'=>16,
'#access'=>!extension_loaded('uploadprogress'),
'#attributes'=>[
'role'=>'status',
],
];
$element['progress_indicator']=[
'#type'=>'radios',
'#title'=>$this->t('Progress indicator'),
...
...
@@ -70,7 +80,7 @@ public function settingsForm(array $form, FormStateInterface $form_state) {
'#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.'),