You are here

public function MediaTypeGuesserInterface::guess in Gutenberg 8.2

Same name and namespace in other branches
  1. 8 src/MediaTypeGuesserInterface.php \Drupal\gutenberg\MediaTypeGuesserInterface::guess()

Guesses all media types based on general mime type.

Parameters

\Drupal\gutenberg\string $general_mime_type: General mime type (image, video, audio, ...).

int $return_option: If self::RETURN_ALL - return all guessed media types. If self::RETURN_NEGOTIATED - returns only one negotiated media type.

Return value

string|array The guessed media types.

1 method overrides MediaTypeGuesserInterface::guess()
MediaTypeGuesser::guess in src/MediaTypeGuesser.php
Guesses all media types based on general mime type.

File

src/MediaTypeGuesserInterface.php, line 34

Class

MediaTypeGuesserInterface
Guesses media type of the file.

Namespace

Drupal\gutenberg

Code

public function guess(string $general_mime_type, $return_option = self::RETURN_ALL);