public static function resolvetoFIDtoURI(int $fid) {

        if (!is_integer($fid)) {
            return null;
        }
        /* @var \Drupal\file\FileInterface $file */
        $file = \Drupal::entityTypeManager()->getStorage('file')->load($fid);
        return $file;
    }
public static function resolvetoFIDtoURI(int $fid) {

        if (!is_integer($fid)) {
            return null;
        }
        /* @var \Drupal\file\FileInterface $file */
        $file = \Drupal::entityTypeManager()->getStorage('file')->load($fid);
        return $file;
    }
public static function resolvetoFIDtoURI ( int $ fid ) { if ( ! is_integer ( $ fid ) ) { return null ; } /* @var \Drupal\file\FileInterface $file */ $ file = \ Drupal :: entityTypeManager ( ) -> getStorage ( 'file' ) -> load ( $ fid ) ; return $ file ; }
Given an fid return the Drupal URI to that file..

@param int $fid
@return null | \Drupal\file\FileInterface
@throws \Drupal\Component\Plugin\Exception\InvalidPluginDefinitionException
@throws \Drupal\Component\Plugin\Exception\PluginNotFoundException
Given an fid return the Drupal URI to that file ..