concrete/src/File/Type/Type.php
public function getThumbnail($fullImageTag = true)
    {
        $app = Application::getFacadeApplication();
        $config = $app->make('config');
        $type = ThumbnailType::getByHandle($config->get('concrete.icons.file_manager_listing.handle'));
        if (file_exists(DIR_AL_ICONS . '/' . $this->getExtension() . '.svg')) {
            $url = REL_DIR_AL_ICONS . '/' . $this->getExtension() . '.svg';
        } else {
            $url = AL_ICON_DEFAULT;
        }
        if ($fullImageTag == true) {
            return sprintf(
                '<img src="%s" width="%s" height="%s" class="img-responsive ccm-generic-thumbnail" alt="%s">',
                $url,
                $type->getWidth(),
                $type->getHeight(),
                t(/* i18n: %s is a file type */ '%s file icon', mb_strtoupper($this->getExtension()))
            );
        } else {
            return $url;
        }
    }
public function getThumbnail($fullImageTag = true)
    {
        $app = Application::getFacadeApplication();
        $config = $app->make('config');
        $type = ThumbnailType::getByHandle($config->get('concrete.icons.file_manager_listing.handle'));
        if (file_exists(DIR_AL_ICONS . '/' . $this->getExtension() . '.svg')) {
            $url = REL_DIR_AL_ICONS . '/' . $this->getExtension() . '.svg';
        } else {
            $url = AL_ICON_DEFAULT;
        }
        if ($fullImageTag == true) {
            return sprintf(
                '<img src="%s" width="%s" height="%s" class="img-responsive ccm-generic-thumbnail" alt="%s">',
                $url,
                $type->getWidth(),
                $type->getHeight(),
                t(/* i18n: %s is a file type */ '%s file icon', mb_strtoupper($this->getExtension()))
            );
        } else {
            return $url;
        }
    }
public function getThumbnail ( $ fullImageTag = true ) { $ app = Application :: getFacadeApplication ( ) ; $ config = $ app -> make ( 'config' ) ; $ type = ThumbnailType :: getByHandle ( $ config -> get ( 'concrete.icons.file_manager_listing.handle' ) ) ; if ( file_exists ( DIR_AL_ICONS . '/' . $ this -> getExtension ( ) . '.svg' ) ) { $ url = REL_DIR_AL_ICONS . '/' . $ this -> getExtension ( ) . '.svg' ; } else { $ url = AL_ICON_DEFAULT ; } if ( $ fullImageTag == true ) { return sprintf ( '<img src="%s" width="%s" height="%s" class="img-responsive ccm-generic-thumbnail" alt="%s">' , $ url , $ type -> getWidth ( ) , $ type -> getHeight ( ) , t ( /* i18n: %s is a file type */ '%s file icon' , mb_strtoupper ( $ this -> getExtension ( ) ) ) ) ; } else { return $ url ; } }
Returns a thumbnail for this type of file.

@param bool $fullImageTag Set to true to retrieve the full HTML image tag, false to just retrieve the image URL

@return string
Returns a thumbnail for this type of file .