public static function FileUrlWidget::defaultSettings in File URL 2.0.x
Same name and namespace in other branches
- 8 src/Plugin/Field/FieldWidget/FileUrlWidget.php \Drupal\file_url\Plugin\Field\FieldWidget\FileUrlWidget::defaultSettings()
Defines the default settings for this plugin.
Return value
array A list of default settings, keyed by the setting name.
Overrides FileWidget::defaultSettings
File
- src/
Plugin/ Field/ FieldWidget/ FileUrlWidget.php, line 42
Class
- FileUrlWidget
- Plugin implementation of the 'file_url_generic' widget.
Namespace
Drupal\file_url\Plugin\Field\FieldWidgetCode
public static function defaultSettings() {
return [
'add_new_label' => 'Upload a new file or enter a URL',
] + parent::defaultSettings();
}