3 namespace Drupal\file\Plugin\Field\FieldFormatter;
6 * Defines getter methods for FileMediaFormatterBase.
8 * This interface is used on the FileMediaFormatterBase class to ensure that
9 * each file media formatter will be based on a media type.
11 * Abstract classes are not able to implement abstract static methods,
12 * this interface will work around that.
14 * @see \Drupal\file\Plugin\Field\FieldFormatter\FileMediaFormatterBase
16 interface FileMediaFormatterInterface {
19 * Gets the applicable media type for a formatter.
22 * The media type of this formatter.
24 public static function getMediaType();