You are here

public function MimeDetectorInterface::detect in MimeDetect 8

Try MIME detection on a given file.

Parameters

string $path: Path of the file to be analyzed.

Return value

string The detected MIME, NULL if file contents are not recognized.

1 method overrides MimeDetectorInterface::detect()
CsvMimeDetector::detect in src/Plugin/MimeDetector/CsvMimeDetector.php
Try MIME detection on a given file.

File

src/MimeDetectorInterface.php, line 27

Class

MimeDetectorInterface
An interface for all MimeDetector type plugins.

Namespace

Drupal\mimedetect

Code

public function detect($path);