98f1de1d7fc2711f74e3d3520015a5e05e023cfe
[yaffs-website] / web / core / modules / file / src / Plugin / Field / FieldFormatter / FileMediaFormatterInterface.php
1 <?php
2
3 namespace Drupal\file\Plugin\Field\FieldFormatter;
4
5 /**
6  * Defines getter methods for FileMediaFormatterBase.
7  *
8  * This interface is used on the FileMediaFormatterBase class to ensure that
9  * each file media formatter will be based on a media type.
10  *
11  * Abstract classes are not able to implement abstract static methods,
12  * this interface will work around that.
13  *
14  * @see \Drupal\file\Plugin\Field\FieldFormatter\FileMediaFormatterBase
15  */
16 interface FileMediaFormatterInterface {
17
18   /**
19    * Gets the applicable media type for a formatter.
20    *
21    * @return string
22    *   The media type of this formatter.
23    */
24   public static function getMediaType();
25
26 }