You are here

public static function VideoUploadWidget::defaultSettings in Video 8

Same name and namespace in other branches
  1. 8.2 src/Plugin/Field/FieldWidget/VideoUploadWidget.php \Drupal\video\Plugin\Field\FieldWidget\VideoUploadWidget::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/VideoUploadWidget.php, line 30

Class

VideoUploadWidget
Plugin implementation of the 'video_upload' widget.

Namespace

Drupal\video\Plugin\Field\FieldWidget

Code

public static function defaultSettings() {
  $settings = [
    'file_extensions' => 'mp4 ogv webm',
    'file_directory' => 'videos/[date:custom:Y]-[date:custom:m]',
    'max_filesize' => '',
    'uri_scheme' => 'public',
  ] + parent::defaultSettings();
  return $settings;
}