You are here

protected function SoundcloudEmbedFormatter::getEmbedOptions 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::getEmbedOptions()
  2. 3.x src/Plugin/Field/FieldFormatter/SoundcloudEmbedFormatter.php \Drupal\media_entity_soundcloud\Plugin\Field\FieldFormatter\SoundcloudEmbedFormatter::getEmbedOptions()

Returns an array of options for the embedded player.

Return value

array

2 calls to SoundcloudEmbedFormatter::getEmbedOptions()
SoundcloudEmbedFormatter::settingsForm in src/Plugin/Field/FieldFormatter/SoundcloudEmbedFormatter.php
@inheritDoc
SoundcloudEmbedFormatter::settingsSummary in src/Plugin/Field/FieldFormatter/SoundcloudEmbedFormatter.php
Returns a short summary for the current formatter settings.

File

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

Class

SoundcloudEmbedFormatter
Plugin implementation of the 'soundcloud_embed' formatter.

Namespace

Drupal\media_entity_soundcloud\Plugin\Field\FieldFormatter

Code

protected function getEmbedOptions() {
  return [
    'auto_play' => $this
      ->t('Autoplay'),
    'hide_related' => $this
      ->t('Hide related'),
    'show_comments' => $this
      ->t('Show comments'),
    'show_user' => $this
      ->t('Show user'),
    'show_reposts' => $this
      ->t('Show reposts'),
  ];
}