abstract public function AudioFieldPluginBase::renderPlayer in AudioField 8
Renders the player.
Parameters
\Drupal\Core\Field\FieldItemListInterface $items: The uploaded item list.
string $langcode: The language code.
array $settings: An array of additional render settings.
Return value
array Returns the rendered array.
8 methods override AudioFieldPluginBase::renderPlayer()
- AudioJsAudioPlayer::renderPlayer in src/
Plugin/ AudioPlayer/ AudioJsAudioPlayer.php - Renders the player.
- DefaultMp3Player::renderPlayer in src/
Plugin/ AudioPlayer/ DefaultMp3Player.php - Renders the player.
- JPlayerAudioPlayer::renderPlayer in src/
Plugin/ AudioPlayer/ JPlayerAudioPlayer.php - Renders the player.
- MediaElementAudioPlayer::renderPlayer in src/
Plugin/ AudioPlayer/ MediaElementAudioPlayer.php - Renders the player.
- ProjekktorAudioPlayer::renderPlayer in src/
Plugin/ AudioPlayer/ ProjekktorAudioPlayer.php - Renders the player.
File
- src/
AudioFieldPluginBase.php, line 97
Class
- AudioFieldPluginBase
- Base class for audiofield plugins. Includes global functions.
Namespace
Drupal\audiofieldCode
public abstract function renderPlayer(FieldItemListInterface $items, $langcode, array $settings);