CMS\Page::getDir PHP Method

getDir() public method

Return current directory
public getDir ( ) : string
return string
    public function getDir()
    {
        return $this->isDir() ? $this->getRealPath() : dirname($this->getRealPath());
    }