
| Current Path : /var/www/html/c12park/web/modules/contrib/webform/src/Plugin/WebformElement/ |
Linux ift1.ift-informatik.de 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64 |
| Current File : /var/www/html/c12park/web/modules/contrib/webform/src/Plugin/WebformElement/WebformAudioFile.php |
<?php
namespace Drupal\webform\Plugin\WebformElement;
/**
* Provides a 'webform_audio_file' element.
*
* @WebformElement(
* id = "webform_audio_file",
* label = @Translation("Audio file"),
* description = @Translation("Provides a form element for uploading and saving an audio file."),
* category = @Translation("File upload elements"),
* states_wrapper = TRUE,
* dependencies = {
* "file",
* }
* )
*/
class WebformAudioFile extends WebformManagedFileBase {
/**
* {@inheritdoc}
*/
public function getItemFormats() {
$formats = parent::getItemFormats();
$formats['file'] = $this->t('HTML5 Audio player (MP3 only)');
return $formats;
}
}