You are here

public static function VideoPlayerHTML5::defaultSettings in Media entity video 8

Same name and namespace in other branches
  1. 8.3 src/Plugin/Field/FieldFormatter/VideoPlayerHTML5.php \Drupal\media_entity_video\Plugin\Field\FieldFormatter\VideoPlayerHTML5::defaultSettings()
  2. 8.2 src/Plugin/Field/FieldFormatter/VideoPlayerHTML5.php \Drupal\media_entity_video\Plugin\Field\FieldFormatter\VideoPlayerHTML5::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/VideoPlayerHTML5.php, line 24

Class

VideoPlayerHTML5
Plugin implementation of the 'Video Player (HTML5)' formatter.

Namespace

Drupal\media_entity_video\Plugin\Field\FieldFormatter

Code

public static function defaultSettings() {
  $settings['provide_download_link'] = TRUE;
  $settings['video_attributes'] = '';
  return $settings;
}