public function SophronMimeTypeGuesser::guess in Sophron 8
Same name in this branch
- 8 sophron_guesser/src/SophronMimeTypeGuesser.php \Drupal\sophron_guesser\SophronMimeTypeGuesser::guess()
- 8 sophron_guesser/src/ProxyClass/SophronMimeTypeGuesser.php \Drupal\sophron_guesser\ProxyClass\SophronMimeTypeGuesser::guess()
File
- sophron_guesser/
src/ SophronMimeTypeGuesser.php, line 67
Class
- SophronMimeTypeGuesser
- Makes possible to guess the MIME type of a file using its extension.
Namespace
Drupal\sophron_guesserCode
public function guess($path) {
@trigger_error(__METHOD__ . '() is deprecated in drupal:9.1.0 and is removed from drupal:10.0.0. Use ::guessMimeType() instead. See https://www.drupal.org/node/3133341', E_USER_DEPRECATED);
return $this
->guessMimeType($path);
}