yii\base\Theme::getPath PHP Method

getPath() public method

Converts a relative file path into an absolute one using [[basePath]].
public getPath ( string $path ) : string
$path string the relative file path to be converted.
return string the absolute file path
    public function getPath($path)
    {
        if (($basePath = $this->getBasePath()) !== null) {
            return $basePath . DIRECTORY_SEPARATOR . ltrim($path, '/\\');
        } else {
            throw new InvalidConfigException('The "basePath" property must be set.');
        }
    }