function MimeTypeGuesser::guessMimeType

Same name in this branch
  1. 10 core/lib/Drupal/Core/File/MimeType/MimeTypeGuesser.php \Drupal\Core\File\MimeType\MimeTypeGuesser::guessMimeType()
Same name in other branches
  1. 9 core/lib/Drupal/Core/File/MimeType/MimeTypeGuesser.php \Drupal\Core\File\MimeType\MimeTypeGuesser::guessMimeType()
  2. 9 core/lib/Drupal/Core/ProxyClass/File/MimeType/MimeTypeGuesser.php \Drupal\Core\ProxyClass\File\MimeType\MimeTypeGuesser::guessMimeType()
  3. 11.x core/lib/Drupal/Core/File/MimeType/MimeTypeGuesser.php \Drupal\Core\File\MimeType\MimeTypeGuesser::guessMimeType()
  4. 11.x core/lib/Drupal/Core/ProxyClass/File/MimeType/MimeTypeGuesser.php \Drupal\Core\ProxyClass\File\MimeType\MimeTypeGuesser::guessMimeType()

File

core/lib/Drupal/Core/ProxyClass/File/MimeType/MimeTypeGuesser.php, line 73

Class

MimeTypeGuesser
Provides a proxy class for \Drupal\Core\File\MimeType\MimeTypeGuesser.

Namespace

Drupal\Core\ProxyClass\File\MimeType

Code

public function guessMimeType(string $path) : ?string {
    return $this->lazyLoadItself()
        ->guessMimeType($path);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.