Same name and namespace in other branches
- 8.x-1.x src/ExifPHPExtension.php \Drupal\exif\ExifPHPExtension::getFileType() 1 comment
- 8.x-2.x src/ExifPHPExtension.php \Drupal\exif\ExifPHPExtension::getFileType() 1 comment
Parameters
string $file:
Return value
string
1 call to ExifPHPExtension::getFileType()
- ExifPHPExtension::readExifTags in ./
ExifPHPExtension.php - Read the Information from a picture according to the fields.
File
-
./
ExifPHPExtension.php, line 368
Class
- ExifPHPExtension
- This is a helper class to handle the whole data processing of exif.
Namespace
Drupal\exifCode
private function getFileType($file) {
$ar = explode('.', $file);
$ending = $ar[count($ar) - 1];
return $ending;
}