You are here

FileExtensionGuesserInterface.php in Gutenberg 8

Same filename and directory in other branches
  1. 8.2 src/FileExtensionGuesserInterface.php

Namespace

Drupal\gutenberg

File

src/FileExtensionGuesserInterface.php
View source
<?php

namespace Drupal\gutenberg;


/**
 * Guesses all possible file extensions by mime type.
 *
 * @package Drupal\gutenberg
 */
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);

}

Interfaces

Namesort descending Description
FileExtensionGuesserInterface Guesses all possible file extensions by mime type.