src/Extensions/PdfExportControllerExtension.php
public function getPDFBaseURL()
    {
        // if base url YML is defined in YML, use that
        if ($this->owner->data()->config()->get('pdf_base_url')) {
            $pdfBaseUrl = $this->owner->data()->config()->get('pdf_base_url').'/';
            // otherwise, if we are CWP use the secure domain
        } elseif (Environment::getEnv('CWP_SECURE_DOMAIN')) {
            $pdfBaseUrl = Environment::getEnv('CWP_SECURE_DOMAIN') . '/';
            // or if neither, leave blank
        } else {
            $pdfBaseUrl = '';
        }
        return $pdfBaseUrl;
    }
public function getPDFBaseURL()
    {
        // if base url YML is defined in YML, use that
        if ($this->owner->data()->config()->get('pdf_base_url')) {
            $pdfBaseUrl = $this->owner->data()->config()->get('pdf_base_url').'/';
            // otherwise, if we are CWP use the secure domain
        } elseif (Environment::getEnv('CWP_SECURE_DOMAIN')) {
            $pdfBaseUrl = Environment::getEnv('CWP_SECURE_DOMAIN') . '/';
            // or if neither, leave blank
        } else {
            $pdfBaseUrl = '';
        }
        return $pdfBaseUrl;
    }
public function getPDFBaseURL ( ) { // if base url YML is defined in YML, use that if ( $ this -> owner -> data ( ) -> config ( ) -> get ( 'pdf_base_url' ) ) { $ pdfBaseUrl = $ this -> owner -> data ( ) -> config ( ) -> get ( 'pdf_base_url' ) . '/' ; // otherwise, if we are CWP use the secure domain } elseif ( Environment :: getEnv ( 'CWP_SECURE_DOMAIN' ) ) { $ pdfBaseUrl = Environment :: getEnv ( 'CWP_SECURE_DOMAIN' ) . '/' ; // or if neither, leave blank } else { $ pdfBaseUrl = '' ; } return $ pdfBaseUrl ; }
This will return either pdf_base_url from YML, CWP_SECURE_DOMAIN from _ss_environment, or blank. In that
order of importance.

@return string
This will return either pdf_base_url from YML CWP_SECURE_DOMAIN from _ss_environment or blank . In that order of importance .