function FileVideoFormatter::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/FileVideoFormatter.php, line 24

Class

FileVideoFormatter
Plugin implementation of the 'file_video' formatter.

Namespace

Drupal\file\Plugin\Field\FieldFormatter

Code

public static function getMediaType() {
  return 'video';
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.