You are here

interface FileExtensionGuesserInterface in Gutenberg 8

Same name and namespace in other branches
  1. 8.2 src/FileExtensionGuesserInterface.php \Drupal\gutenberg\FileExtensionGuesserInterface

Guesses all possible file extensions by mime type.

@package Drupal\gutenberg

Hierarchy

Expanded class hierarchy of FileExtensionGuesserInterface

All classes that implement FileExtensionGuesserInterface

File

src/FileExtensionGuesserInterface.php, line 10

Namespace

Drupal\gutenberg
View source
interface FileExtensionGuesserInterface {

  /**
   * Guesses all possible file extensions by general mime type.
   *
   * @param string $general_mime_type
   *   General mime type (image, video, audio, ...).
   *
   * @return array
   *   The mime types.
   */
  public function guessByGeneralMimeType(string $general_mime_type);

}

Members

Namesort descending Modifiers Type Description Overrides
FileExtensionGuesserInterface::guessByGeneralMimeType public function Guesses all possible file extensions by general mime type. 1