function File::defineOptions
Same name in other branches
- 9 core/modules/file/src/Plugin/views/field/File.php \Drupal\file\Plugin\views\field\File::defineOptions()
- 10 core/modules/file/src/Plugin/views/field/File.php \Drupal\file\Plugin\views\field\File::defineOptions()
- 11.x core/modules/file/src/Plugin/views/field/File.php \Drupal\file\Plugin\views\field\File::defineOptions()
Overrides FieldPluginBase::defineOptions
File
-
core/
modules/ file/ src/ Plugin/ views/ field/ File.php, line 34
Class
- File
- Field handler to provide simple renderer that allows linking to a file.
Namespace
Drupal\file\Plugin\views\fieldCode
protected function defineOptions() {
$options = parent::defineOptions();
$options['link_to_file'] = [
'default' => FALSE,
];
return $options;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.