yii\base\Theme::setBasePath PHP Method

setBasePath() public method

See also: pathMap
public setBasePath ( string $path )
$path string the root path or path alias of this theme. All resources of this theme are located under this directory.
    public function setBasePath($path)
    {
        $this->_basePath = Yii::getAlias($path);
    }