src/Page/TemplateManager.php
protected function getTemplatePath($code)
    {
        $code = $code ?: $this->getDefaultTemplateCode();
        $template = $this->get($code);

        return $template ? $template->getPath() : $this->defaultTemplatePath;
    }
protected function getTemplatePath($code)
    {
        $code = $code ?: $this->getDefaultTemplateCode();
        $template = $this->get($code);

        return $template ? $template->getPath() : $this->defaultTemplatePath;
    }
protected function getTemplatePath ( $ code ) { $ code = $ code ? : $ this -> getDefaultTemplateCode ( ) ; $ template = $ this -> get ( $ code ) ; return $ template ? $ template -> getPath ( ) : $ this -> defaultTemplatePath ; }
Returns the template path for given code.

@param string|null $code

@return string
Returns the template path for given code .