You are here

public function FileMime::buildOptionsForm in Views (for Drupal 7) 8.3

Provide link to file option

Overrides File::buildOptionsForm

File

lib/Views/file/Plugin/views/field/FileMime.php, line 30
Definition of Views\file\Plugin\views\field\FileMime.

Class

FileMime
Field handler to add rendering MIME type images as an option on the filemime field.

Namespace

Views\file\Plugin\views\field

Code

public function buildOptionsForm(&$form, &$form_state) {
  $form['filemime_image'] = array(
    '#title' => 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);
}