/** * {@inheritdoc} */ public function settingsForm(array $form, FormStateInterface $form_state) { $form = parent::settingsForm($form, $form_state); $form['filemime_image'] = array('#title' => $this->t('Display an icon'), '#description' => $this->t('The icon is representing the file type, instead of the MIME text (such as "image/jpeg")'), '#type' => 'checkbox', '#default_value' => $this->getSetting('filemime_image')); return $form; }
/** * {@inheritdoc} */ public function settingsForm(array $form, FormStateInterface $form_state) { $form = parent::settingsForm($form, $form_state); $form['file_download_path'] = ['#title' => $this->t('Display the file download URI'), '#type' => 'checkbox', '#default_value' => $this->getSetting('file_download_path')]; return $form; }
/** * {@inheritdoc} */ public function settingsForm(array $form, FormStateInterface $form_state) { $form = parent::settingsForm($form, $form_state); $form['extension_detect_tar'] = array('#type' => 'checkbox', '#title' => $this->t('Include tar in extension'), '#description' => $this->t("If the part of the filename just before the extension is '.tar', include this in the extension output."), '#default_value' => $this->getSetting('extension_detect_tar')); return $form; }