You are here

public static function SoundcloudEmbedFormatter::defaultSettings in Media entity Soundcloud 8

Same name and namespace in other branches
  1. 8.2 src/Plugin/Field/FieldFormatter/SoundcloudEmbedFormatter.php \Drupal\media_entity_soundcloud\Plugin\Field\FieldFormatter\SoundcloudEmbedFormatter::defaultSettings()
  2. 3.x src/Plugin/Field/FieldFormatter/SoundcloudEmbedFormatter.php \Drupal\media_entity_soundcloud\Plugin\Field\FieldFormatter\SoundcloudEmbedFormatter::defaultSettings()

@inheritDoc

Overrides PluginSettingsBase::defaultSettings

File

src/Plugin/Field/FieldFormatter/SoundcloudEmbedFormatter.php, line 27

Class

SoundcloudEmbedFormatter
Plugin implementation of the 'soundcloud_embed' formatter.

Namespace

Drupal\media_entity_soundcloud\Plugin\Field\FieldFormatter

Code

public static function defaultSettings() {
  return array(
    'type' => 'visual',
    'width' => '100%',
    'height' => '450px',
    'options' => [],
  ) + parent::defaultSettings();
}