You are here

public static function VideoPlayerFormatter::defaultSettings in Video 8

Same name and namespace in other branches
  1. 8.2 src/Plugin/Field/FieldFormatter/VideoPlayerFormatter.php \Drupal\video\Plugin\Field\FieldFormatter\VideoPlayerFormatter::defaultSettings()

Defines the default settings for this plugin.

Return value

array A list of default settings, keyed by the setting name.

Overrides PluginSettingsBase::defaultSettings

File

src/Plugin/Field/FieldFormatter/VideoPlayerFormatter.php, line 80

Class

VideoPlayerFormatter
Plugin implementation of the 'video_player' formatter.

Namespace

Drupal\video\Plugin\Field\FieldFormatter

Code

public static function defaultSettings() {
  return [
    'width' => '854',
    'height' => '480',
    'controls' => TRUE,
    'autoplay' => FALSE,
    'loop' => FALSE,
    'muted' => FALSE,
    'preload' => 'none',
  ] + parent::defaultSettings();
}