You are here

interface MimeTypeGuesserInterface in Zircon Profile 8

Same name and namespace in other branches
  1. 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

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\MimeType
View 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

Namesort descending Modifiers Type Description Overrides
MimeTypeGuesserInterface::guess public function Guesses the mime type of the file with the given path. 7