Nexcessnet_Turpentine_Model_Varnish_Configurator_Abstract::_getCustomTemplateFilename PHP Method

_getCustomTemplateFilename() protected method

Get the custom VCL template, if it exists Returns 'null' if the file doesn't exist
protected _getCustomTemplateFilename ( ) : string
return string
    protected function _getCustomTemplateFilename()
    {
        $filePath = $this->_formatTemplate(Mage::getStoreConfig('turpentine_varnish/servers/custom_vcl_template'), array('root_dir' => Mage::getBaseDir()));
        if (is_file($filePath)) {
            return $filePath;
        } else {
            return null;
        }
    }