You are here

public static function AudioFieldFieldFormatter::defaultSettings in AudioField 8

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/AudioFieldFieldFormatter.php, line 585

Class

AudioFieldFieldFormatter
Plugin implementation of audio player file formatter.

Namespace

Drupal\audiofield\Plugin\Field\FieldFormatter

Code

public static function defaultSettings() {
  return [
    'audio_player' => 'default_mp3_player',
    'audio_player_jplayer_theme' => 'none',
    'audio_player_wavesurfer_combine_files' => FALSE,
    'audio_player_wavesurfer_audiorate' => 1,
    'audio_player_wavesurfer_autocenter' => TRUE,
    'audio_player_wavesurfer_bargap' => 0,
    'audio_player_wavesurfer_barheight' => 1,
    'audio_player_wavesurfer_barwidth' => NULL,
    'audio_player_wavesurfer_cursorcolor' => '#333',
    'audio_player_wavesurfer_cursorwidth' => 1,
    'audio_player_wavesurfer_forcedecode' => FALSE,
    'audio_player_wavesurfer_normalize' => FALSE,
    'audio_player_wavesurfer_playnexttrack' => TRUE,
    'audio_player_wavesurfer_progresscolor' => '#555',
    'audio_player_wavesurfer_responsive' => FALSE,
    'audio_player_wavesurfer_wavecolor' => '#999',
    'audio_player_wavesurfer_use_peakfile' => FALSE,
    'audio_player_wordpress_combine_files' => FALSE,
    'audio_player_wordpress_animation' => TRUE,
    'audio_player_soundmanager_theme' => 'default',
    'audio_player_initial_volume' => 8,
    'audio_player_autoplay' => FALSE,
    'audio_player_lazyload' => FALSE,
    'download_button' => FALSE,
    'download_link' => FALSE,
  ] + parent::defaultSettings();
}