You are here

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

Provide link to file option

Overrides File::buildOptionsForm

File

lib/Views/file/Plugin/views/field/Uri.php, line 28
Definition of Views\file\Plugin\views\field\Uri.

Class

Uri
Field handler to add rendering file paths as file URLs instead of as internal file URIs.

Namespace

Views\file\Plugin\views\field

Code

public function buildOptionsForm(&$form, &$form_state) {
  $form['file_download_path'] = array(
    '#title' => t('Display download path instead of file storage URI'),
    '#description' => 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);
}