interface MimeTypeGuesserInterface in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony/http-foundation/File/MimeType/MimeTypeGuesserInterface.php \Symfony\Component\HttpFoundation\File\MimeType\MimeTypeGuesserInterface
Guesses the mime type of a file.
@author Bernhard Schussek <bschussek@gmail.com>
Hierarchy
- interface \Symfony\Component\HttpFoundation\File\MimeType\MimeTypeGuesserInterface
Expanded class hierarchy of MimeTypeGuesserInterface
All classes that implement MimeTypeGuesserInterface
3 files declare their use of MimeTypeGuesserInterface
- ExtensionMimeTypeGuesser.php in core/
lib/ Drupal/ Core/ File/ MimeType/ ExtensionMimeTypeGuesser.php - Contains \Drupal\Core\File\MimeType\ExtensionMimeTypeGuesser.
- MimeTypeGuesser.php in core/
lib/ Drupal/ Core/ File/ MimeType/ MimeTypeGuesser.php - Contains \Drupal\Core\File\MimeType\MimeTypeGuesser.
- ThemeSettingsForm.php in core/
modules/ system/ src/ Form/ ThemeSettingsForm.php - Contains \Drupal\system\Form\ThemeSettingsForm.
File
- vendor/
symfony/ http-foundation/ File/ MimeType/ MimeTypeGuesserInterface.php, line 22
Namespace
Symfony\Component\HttpFoundation\File\MimeTypeView source
interface MimeTypeGuesserInterface {
/**
* Guesses the mime type of the file with the given path.
*
* @param string $path The path to the file
*
* @return string The mime type or NULL, if none could be guessed
*
* @throws FileNotFoundException If the file does not exist
* @throws AccessDeniedException If the file could not be read
*/
public function guess($path);
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
MimeTypeGuesserInterface:: |
public | function | Guesses the mime type of the file with the given path. | 7 |