public function getTemplateDefinition($webAssetTemplateName = false)
    {
        $ret = clone $this->templateDefinition;

        if (false !== $webAssetTemplateName) {
            $customPath = str_replace($ret->getName(), $webAssetTemplateName, $ret->getPath());
            $ret->setName($webAssetTemplateName);
            $ret->setPath($customPath);
        }

        return $ret;
    }
public function getTemplateDefinition($webAssetTemplateName = false)
    {
        $ret = clone $this->templateDefinition;

        if (false !== $webAssetTemplateName) {
            $customPath = str_replace($ret->getName(), $webAssetTemplateName, $ret->getPath());
            $ret->setName($webAssetTemplateName);
            $ret->setPath($customPath);
        }

        return $ret;
    }
public function getTemplateDefinition ( $ webAssetTemplateName = false ) { $ ret = clone $ this -> templateDefinition ; if ( false !== $ webAssetTemplateName ) { $ customPath = str_replace ( $ ret -> getName ( ) , $ webAssetTemplateName , $ ret -> getPath ( ) ) ; $ ret -> setName ( $ webAssetTemplateName ) ; $ ret -> setPath ( $ customPath ) ; } return $ ret ; }
Get template definition

@param bool|string $webAssetTemplateName false to use the current template path, or a template name to
load assets from this template instead of the current one.

@return TemplateDefinition
Get template definition