public function FileMime::buildOptionsForm

Provide link to file option

Overrides File::buildOptionsForm

File

drupal/core/modules/file/lib/Drupal/file/Plugin/views/field/FileMime.php, line 27
Definition of Drupal\file\Plugin\views\field\FileMime.

Class

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

Namespace

Drupal\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);
}