You are here

public static function SoundCloudDefaultFormatter::defaultSettings in SoundCloud field 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/SoundCloudDefaultFormatter.php, line 27

Class

SoundCloudDefaultFormatter
Plugin implementation of the 'soundcloud_default' formatter.

Namespace

Drupal\soundcloudfield\Plugin\Field\FieldFormatter

Code

public static function defaultSettings() {
  return array(
    'soundcloud_player_type' => 'classic',
    'soundcloud_player_width' => SOUNDCLOUDFIELD_DEFAULT_WIDTH,
    'soundcloud_player_height' => SOUNDCLOUDFIELD_DEFAULT_HTML5_PLAYER_HEIGHT,
    'soundcloud_player_height_sets' => SOUNDCLOUDFIELD_DEFAULT_HTML5_PLAYER_HEIGHT_SETS,
    'soundcloud_player_visual_height' => SOUNDCLOUDFIELD_DEFAULT_VISUAL_PLAYER_HEIGHT,
    'soundcloud_player_autoplay' => '',
    'soundcloud_player_color' => 'ff7700',
    'soundcloud_player_hiderelated' => '',
    'soundcloud_player_showartwork' => '',
    'soundcloud_player_showcomments' => TRUE,
    'soundcloud_player_showplaycount' => '',
  ) + parent::defaultSettings();
}