You are here

public static function SoundCloudWidget::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/FieldWidget/SoundCloudWidget.php, line 27

Class

SoundCloudWidget
Plugin implementation of the 'soundcloud_url' widget.

Namespace

Drupal\soundcloudfield\Plugin\Field\FieldWidget

Code

public static function defaultSettings() {

  // todo: investigate
  // $settings = parent::defaultSettings();
  return [
    'url' => '',
    'placeholder_url' => '',
  ] + parent::defaultSettings();
}