public function Asset::guessMimeType in Mini site 8
Guess mime type based on provided URI.
1 call to Asset::guessMimeType()
- Asset::setMimeType in src/
Asset.php - Set mime type.
File
- src/
Asset.php, line 520
Class
- Asset
- Class Asset.
Namespace
Drupal\minisiteCode
public function guessMimeType($uri) {
return \Drupal::service('file.mime_type.guesser')
->guess($uri);
}