concrete/src/Entity/File/Version.php
public function getTypeObject()
    {
        $app = Application::getFacadeApplication();
        $fh = $app->make('helper/file');
        $ext = $fh->getExtension($this->fvFilename);
        $ftl = FileTypeList::getType($ext);

        return $ftl;
    }
public function getTypeObject()
    {
        $app = Application::getFacadeApplication();
        $fh = $app->make('helper/file');
        $ext = $fh->getExtension($this->fvFilename);
        $ftl = FileTypeList::getType($ext);

        return $ftl;
    }
public function getTypeObject ( ) { $ app = Application :: getFacadeApplication ( ) ; $ fh = $ app -> make ( 'helper/file' ) ; $ ext = $ fh -> getExtension ( $ this -> fvFilename ) ; $ ftl = FileTypeList :: getType ( $ ext ) ; return $ ftl ; }
Get the type of the file.

@return \Concrete\Core\File\Type\Type
Get the type of the file .