concrete/src/File/Image/Thumbnail/Type/Type.php
public static function getByID($id)
    {
        if ($id) {
            $app = Application::getFacadeApplication();
            $em = $app->make(EntityManagerInterface::class);
            $result = $em->find(ThumbnailTypeEntity::class, $id);
        } else {
            $result = null;
        }

        return $result;
    }
public static function getByID($id)
    {
        if ($id) {
            $app = Application::getFacadeApplication();
            $em = $app->make(EntityManagerInterface::class);
            $result = $em->find(ThumbnailTypeEntity::class, $id);
        } else {
            $result = null;
        }

        return $result;
    }
public static function getByID ( $ id ) { if ( $ id ) { $ app = Application :: getFacadeApplication ( ) ; $ em = $ app -> make ( EntityManagerInterface :: class ) ; $ result = $ em -> find ( ThumbnailTypeEntity :: class , $ id ) ; } else { $ result = null ; } return $ result ; }
Get a thumbnail type given its id.

@param int $id

@return \Concrete\Core\Entity\File\Image\Thumbnail\Type\Type|null
Get a thumbnail type given its id .