You are here

public function MimeDetectServiceInterface::getMime in MimeDetect 8

Get the MIME type for a given file.

Parameters

\Drupal\file\FileInterface $file: The file to be analyzed.

Return value

string The detected MIME type for the given file.

1 method overrides MimeDetectServiceInterface::getMime()
MimeDetectService::getMime in src/MimeDetectService.php
Get the MIME type for a given file.

File

src/MimeDetectServiceInterface.php, line 21

Class

MimeDetectServiceInterface
MimeDetect service.

Namespace

Drupal\mimedetect

Code

public function getMime(FileInterface $file);