Example #1
0
 public function buildOptionsForm(&$form, FormStateInterface $form_state)
 {
     $form['file_download_path'] = array('#title' => $this->t('Display download path instead of file storage URI'), '#description' => $this->t('This will provide the full download URL rather than the internal filestream address.'), '#type' => 'checkbox', '#default_value' => !empty($this->options['file_download_path']));
     parent::buildOptionsForm($form, $form_state);
 }
 public function buildOptionsForm(&$form, FormStateInterface $form_state)
 {
     $form['filemime_image'] = array('#title' => $this->t('Display an icon representing the file type, instead of the MIME text (such as "image/jpeg")'), '#type' => 'checkbox', '#default_value' => !empty($this->options['filemime_image']));
     parent::buildOptionsForm($form, $form_state);
 }