public function WebformVideoFile::getItemFormats in Webform 6.x
Same name and namespace in other branches
- 8.5 src/Plugin/WebformElement/WebformVideoFile.php \Drupal\webform\Plugin\WebformElement\WebformVideoFile::getItemFormats()
Get an element's available single value formats.
Return value
array An associative array of single value formats containing name/label pairs.
Overrides WebformManagedFileBase::getItemFormats
File
- src/
Plugin/ WebformElement/ WebformVideoFile.php, line 24
Class
- WebformVideoFile
- Provides a 'webform_video_file' element.
Namespace
Drupal\webform\Plugin\WebformElementCode
public function getItemFormats() {
$formats = parent::getItemFormats();
$formats['file'] = $this
->t('HTML5 Video player (MP4 only)');
return $formats;
}