Habari\Media::get PHP Method

get() public static method

Get the MediaAsset stored at a virtual path
public static get ( string $path, array $qualities = null ) : MediaAsset
$path string The virtual path of the file to retrieve
$qualities array Qualities of the image to return (such as 'thumbnail' or 'size')
return MediaAsset The requested asset
    public static function get($path, $qualities = null)
    {
        $silo = Media::get_silo($path, true);
        return $silo->silo_get($path, $qualities);
    }