function FileAudioFormatter::getMediaType
Gets the applicable media type for a formatter.
Return value
string The media type of this formatter.
Overrides FileMediaFormatterInterface::getMediaType
File
-
core/
modules/ file/ src/ Plugin/ Field/ FieldFormatter/ FileAudioFormatter.php, line 24
Class
- FileAudioFormatter
- Plugin implementation of the 'file_audio' formatter.
Namespace
Drupal\file\Plugin\Field\FieldFormatterCode
public static function getMediaType() {
return 'audio';
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.