You are here

public static function VideoEmbedWidget::defaultSettings in Video 8

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

Class

VideoEmbedWidget
Plugin implementation of the 'video_embed' widget.

Namespace

Drupal\video\Plugin\Field\FieldWidget

Code

public static function defaultSettings() {
  $settings = [
    'file_directory' => 'video-thumbnails/[date:custom:Y]-[date:custom:m]',
    'allowed_providers' => [
      "youtube" => "youtube",
    ],
    'uri_scheme' => 'public',
  ];
  return $settings;
}