You are here

public static function AudioPlayerHTML5::defaultSettings in Media entity audio 8

Same name and namespace in other branches
  1. 8.2 src/Plugin/Field/FieldFormatter/AudioPlayerHTML5.php \Drupal\media_entity_audio\Plugin\Field\FieldFormatter\AudioPlayerHTML5::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/AudioPlayerHTML5.php, line 24

Class

AudioPlayerHTML5
Plugin implementation of the 'Audio Player (HTML5)' formatter.

Namespace

Drupal\media_entity_audio\Plugin\Field\FieldFormatter

Code

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