public function Uri::buildOptionsForm

Provide link to file option

Overrides File::buildOptionsForm

File

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

Class

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

Namespace

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