MiniAsset\Output\AssetWriter::_timestampFile PHP Method

_timestampFile() protected method

Modify a file name and append in the timestamp
protected _timestampFile ( string $file, integer $time ) : string
$file string The filename.
$time integer The timestamp.
return string The build filename to cache on disk.
    protected function _timestampFile($file, $time)
    {
        if (!$time) {
            return $file;
        }
        $pos = strrpos($file, '.');
        $name = substr($file, 0, $pos);
        $ext = substr($file, $pos);
        return $name . '.v' . $time . $ext;
    }