JamesMoss\Flywheel\Repository::getIdFromPath PHP Method

getIdFromPath() protected method

Get a document's ID base on its filesystem path
protected getIdFromPath ( string $path, string $ext ) : string
$path string The full path to the file (including file extension)
$ext string The file extension (without the period)
return string The ID of the document
    protected function getIdFromPath($path, $ext)
    {
        return basename($path, '.' . $ext);
    }