Phrozn\Site\View\OutputPath\Base::getInputFileExtension PHP Method

getInputFileExtension() protected method

Get the file extension for the input file
protected getInputFileExtension ( $includeDot = true ) : string
return string
    protected function getInputFileExtension($includeDot = true)
    {
        $extension = pathinfo($this->getView()->getInputFile(), PATHINFO_EXTENSION);
        if ($includeDot && $extension != '') {
            return '.' . $extension;
        }
        return $extension;
    }