You are here

public static function FileUrlWidget::defaultSettings in File URL 8

Same name and namespace in other branches
  1. 2.0.x 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\FieldWidget

Code

public static function defaultSettings() {
  return [
    'add_new_label' => 'Upload a new file or enter a URL',
  ] + parent::defaultSettings();
}